Skip to content

Commit f30366c

Browse files
Merge pull request #188 from getbread/pg-1558-unified-merge
Migrate install/upgrade scripts to declarative schema
2 parents a635742 + df9cfe7 commit f30366c

File tree

4 files changed

+21
-100
lines changed

4 files changed

+21
-100
lines changed

Setup/InstallSchema.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

Setup/UpgradeSchema.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

etc/db_schema.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
3+
<table name="quote_payment" resource="checkout">
4+
<column xsi:type="varchar" name="bread_api_version" nullable="true" length="100" comment="Bread api version"/>
5+
</table>
6+
<table name="sales_order_payment" resource="sales">
7+
<column xsi:type="varchar" name="bread_api_version" nullable="true" length="100" comment="Bread api version"/>
8+
</table>
9+
</schema>

etc/db_schema_whitelist.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"quote_payment": {
3+
"column": {
4+
"bread_api_version": true
5+
}
6+
},
7+
"sales_order_payment": {
8+
"column": {
9+
"bread_api_version": true
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)