|
54 | 54 |
|
55 | 55 | <table name="smile_elasticsuite_index_bulk_error" resource="default" engine="innodb" comment="Elasticsuite Index Bulk Errors"> |
56 | 56 | <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"/> |
59 | 59 | <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" /> |
61 | 61 | <column xsi:type="varchar" name="reason_simple" nullable="false" length="255" comment="Error reason simplified"/> |
62 | 62 | <column xsi:type="text" name="reason" nullable="false" comment="Error reason"/> |
63 | 63 | <column xsi:type="text" name="sample_ids" nullable="false" comment="Sample IDs"/> |
|
69 | 69 | <column name="entity_id"/> |
70 | 70 | </constraint> |
71 | 71 |
|
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"> |
73 | 73 | <column name="store_code"/> |
| 74 | + <column name="error_type" /> |
74 | 75 | <column name="index_identifier"/> |
75 | 76 | <column name="operation" /> |
76 | 77 | <column name="reason_simple"/> |
|
79 | 80 | <index referenceId="BLK_ERROR_STORE_CODE" indexType="btree"> |
80 | 81 | <column name="store_code"/> |
81 | 82 | </index> |
| 83 | + <index referenceId="BLK_ERROR_INDEX_IDENTIFIER" indexType="btree"> |
| 84 | + <column name="index_identifier"/> |
| 85 | + </index> |
82 | 86 | <index referenceId="BLK_ERROR_ERROR_TYPE" indexType="btree"> |
83 | 87 | <column name="error_type"/> |
84 | 88 | </index> |
|
0 commit comments