Skip to content

Commit 0c07f30

Browse files
committed
Merge branch '2.10.x' into 2.11.x
2 parents 751ccb5 + ff3c228 commit 0c07f30

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/module-elasticsuite-core/etc/db_schema.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454

5555
<table name="smile_elasticsuite_index_bulk_error" resource="default" engine="innodb" comment="Elasticsuite Index Bulk Errors">
5656
<column xsi:type="bigint" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
57-
<column xsi:type="varchar" name="store_code" nullable="false" length="255" comment="Store code"/>
58-
<column xsi:type="varchar" name="error_type" nullable="false" length="255" comment="Error type"/>
57+
<column xsi:type="varchar" name="store_code" nullable="false" length="32" comment="Store code"/>
58+
<column xsi:type="varchar" name="error_type" nullable="false" length="128" comment="Error type"/>
5959
<column xsi:type="varchar" name="index_identifier" nullable="false" length="255" comment="Index identifier"/>
60-
<column xsi:type="varchar" name="operation" nullable="false" length="255" comment="Operation type" />
60+
<column xsi:type="varchar" name="operation" nullable="false" length="6" comment="Operation type" />
6161
<column xsi:type="varchar" name="reason_simple" nullable="false" length="255" comment="Error reason simplified"/>
6262
<column xsi:type="text" name="reason" nullable="false" comment="Error reason"/>
6363
<column xsi:type="text" name="sample_ids" nullable="false" comment="Sample IDs"/>
@@ -69,8 +69,9 @@
6969
<column name="entity_id"/>
7070
</constraint>
7171

72-
<constraint xsi:type="unique" referenceId="UNQ_STORE_ID_INDEX_IDENTIFIER_REASON_SIMPLE">
72+
<constraint xsi:type="unique" referenceId="UNQ_STORE_ERROR_INDEX_OPERATION_REASON">
7373
<column name="store_code"/>
74+
<column name="error_type" />
7475
<column name="index_identifier"/>
7576
<column name="operation" />
7677
<column name="reason_simple"/>
@@ -79,6 +80,9 @@
7980
<index referenceId="BLK_ERROR_STORE_CODE" indexType="btree">
8081
<column name="store_code"/>
8182
</index>
83+
<index referenceId="BLK_ERROR_INDEX_IDENTIFIER" indexType="btree">
84+
<column name="index_identifier"/>
85+
</index>
8286
<index referenceId="BLK_ERROR_ERROR_TYPE" indexType="btree">
8387
<column name="error_type"/>
8488
</index>

0 commit comments

Comments
 (0)