Skip to content

Commit

Permalink
- database schema change to declarative schema
Browse files Browse the repository at this point in the history
  • Loading branch information
1coro committed Apr 15, 2022
1 parent f0d17f5 commit 5392a4c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 70 deletions.
30 changes: 0 additions & 30 deletions Setup/InstallSchema.php

This file was deleted.

40 changes: 0 additions & 40 deletions Setup/UpgradeSchema.php

This file was deleted.

17 changes: 17 additions & 0 deletions etc/db_schema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="bulkgate_module" resource="default" engine="innodb">
<column xsi:type="varchar" name="scope" nullable="false" length="50" default="main"/>
<column xsi:type="varchar" name="key" nullable="false" length="50"/>
<column xsi:type="varchar" name="type" nullable="false" length="50" default="text"/>
<column xsi:type="text" name="value" nullable="false" default=""/>
<column xsi:type="bigint" name="datetime" nullable="false" />
<column xsi:type="int" name="order" nullable="false" default="0" />
<column xsi:type="varchar" name="synchronize_flag" nullable="false" length="50" default="none" />
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="scope"/>
<column name="key"/>
</constraint>
</table>
</schema>

0 comments on commit 5392a4c

Please sign in to comment.