diff --git a/Setup/InstallSchema.php b/Setup/InstallSchema.php deleted file mode 100644 index ea80168..0000000 --- a/Setup/InstallSchema.php +++ /dev/null @@ -1,30 +0,0 @@ -dIContainer = $DIContainer; - } - - public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) - { - $setup->startSetup(); - - $this->dIContainer->getSettings()->install(); - - $setup->endSetup(); - } -} diff --git a/Setup/UpgradeSchema.php b/Setup/UpgradeSchema.php deleted file mode 100644 index 249d15c..0000000 --- a/Setup/UpgradeSchema.php +++ /dev/null @@ -1,40 +0,0 @@ -dIContainer = $DIContainer; - } - - /** - * @param SchemaSetupInterface $setup - * @param ModuleContextInterface $context - */ - public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context) - { - $setup->startSetup(); - if (version_compare($context->getVersion(), '3.0.7', '<')) { - if (!$setup->tableExists('bulkgate_module')) { - try { - $setup->run("RENAME TABLE `bulkgate_module` TO {$setup->getTable('bulkgate_module')}"); - } catch (\Exception $e) { - $this->dIContainer->getSettings()->install(); - } - } - } - $setup->endSetup(); - } -} diff --git a/etc/db_schema.xml b/etc/db_schema.xml new file mode 100644 index 0000000..1fc9f89 --- /dev/null +++ b/etc/db_schema.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + +
+