Skip to content

Commit 65dac5d

Browse files
author
Alexey Yakimovich
committed
MAGETWO-95654: Constraint removal is not treated as destructive operation
- Added foreign key for 'magento_bulk' table;
1 parent cc5fa97 commit 65dac5d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/code/Magento/AsynchronousOperations/etc/db_schema.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
<constraint xsi:type="unique" name="MAGENTO_BULK_UUID">
2828
<column name="uuid"/>
2929
</constraint>
30+
<constraint xsi:type="foreign" name="MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID" table="magento_bulk"
31+
column="user_id" referenceTable="admin_user" referenceColumn="user_id" onDelete="CASCADE"/>
3032
<index name="MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID" indexType="btree">
3133
<column name="user_id"/>
3234
</index>

app/code/Magento/AsynchronousOperations/etc/db_schema_whitelist.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"constraint": {
1717
"PRIMARY": true,
18-
"MAGENTO_BULK_UUID": true
18+
"MAGENTO_BULK_UUID": true,
19+
"MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID": true
1920
}
2021
},
2122
"magento_operation": {

0 commit comments

Comments
 (0)