|
17 | 17 |
|
18 | 18 | <table name="smile_elasticsuite_index_bulk_error" resource="default" engine="innodb" comment="Elasticsuite Index Bulk Errors"> |
19 | 19 | <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"/> |
22 | 22 | <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" /> |
24 | 24 | <column xsi:type="varchar" name="reason_simple" nullable="false" length="255" comment="Error reason simplified"/> |
25 | 25 | <column xsi:type="text" name="reason" nullable="false" comment="Error reason"/> |
26 | 26 | <column xsi:type="text" name="sample_ids" nullable="false" comment="Sample IDs"/> |
|
32 | 32 | <column name="entity_id"/> |
33 | 33 | </constraint> |
34 | 34 |
|
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"> |
36 | 36 | <column name="store_code"/> |
| 37 | + <column name="error_type" /> |
37 | 38 | <column name="index_identifier"/> |
38 | 39 | <column name="operation" /> |
39 | 40 | <column name="reason_simple"/> |
|
42 | 43 | <index referenceId="BLK_ERROR_STORE_CODE" indexType="btree"> |
43 | 44 | <column name="store_code"/> |
44 | 45 | </index> |
| 46 | + <index referenceId="BLK_ERROR_INDEX_IDENTIFIER" indexType="btree"> |
| 47 | + <column name="index_identifier"/> |
| 48 | + </index> |
45 | 49 | <index referenceId="BLK_ERROR_ERROR_TYPE" indexType="btree"> |
46 | 50 | <column name="error_type"/> |
47 | 51 | </index> |
|
0 commit comments