Skip to content

Commit ff3c228

Browse files
authored
Merge pull request #3683 from rbayet/fix_bulk_error_mysql_8_compat_2.10.x
[Core] Fixes #3681 MySQL 8+ index_bulk_error compatibility (2.10.x)
2 parents 50511b8 + 3efb661 commit ff3c228

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
@@ -17,10 +17,10 @@
1717

1818
<table name="smile_elasticsuite_index_bulk_error" resource="default" engine="innodb" comment="Elasticsuite Index Bulk Errors">
1919
<column xsi:type="bigint" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
20-
<column xsi:type="varchar" name="store_code" nullable="false" length="255" comment="Store code"/>
21-
<column xsi:type="varchar" name="error_type" nullable="false" length="255" comment="Error type"/>
20+
<column xsi:type="varchar" name="store_code" nullable="false" length="32" comment="Store code"/>
21+
<column xsi:type="varchar" name="error_type" nullable="false" length="128" comment="Error type"/>
2222
<column xsi:type="varchar" name="index_identifier" nullable="false" length="255" comment="Index identifier"/>
23-
<column xsi:type="varchar" name="operation" nullable="false" length="255" comment="Operation type" />
23+
<column xsi:type="varchar" name="operation" nullable="false" length="6" comment="Operation type" />
2424
<column xsi:type="varchar" name="reason_simple" nullable="false" length="255" comment="Error reason simplified"/>
2525
<column xsi:type="text" name="reason" nullable="false" comment="Error reason"/>
2626
<column xsi:type="text" name="sample_ids" nullable="false" comment="Sample IDs"/>
@@ -32,8 +32,9 @@
3232
<column name="entity_id"/>
3333
</constraint>
3434

35-
<constraint xsi:type="unique" referenceId="UNQ_STORE_ID_INDEX_IDENTIFIER_REASON_SIMPLE">
35+
<constraint xsi:type="unique" referenceId="UNQ_STORE_ERROR_INDEX_OPERATION_REASON">
3636
<column name="store_code"/>
37+
<column name="error_type" />
3738
<column name="index_identifier"/>
3839
<column name="operation" />
3940
<column name="reason_simple"/>
@@ -42,6 +43,9 @@
4243
<index referenceId="BLK_ERROR_STORE_CODE" indexType="btree">
4344
<column name="store_code"/>
4445
</index>
46+
<index referenceId="BLK_ERROR_INDEX_IDENTIFIER" indexType="btree">
47+
<column name="index_identifier"/>
48+
</index>
4549
<index referenceId="BLK_ERROR_ERROR_TYPE" indexType="btree">
4650
<column name="error_type"/>
4751
</index>

0 commit comments

Comments
 (0)