]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Таблица store_guid_buh feature_filippov_erp-146_motiv_buh_values_table origin/feature_filippov_erp-146_motiv_buh_values_table
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 21 Aug 2024 09:49:48 +0000 (12:49 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 21 Aug 2024 09:49:48 +0000 (12:49 +0300)
erp24/migrations/m240821_114356_create_table_motivation_buh.php [deleted file]
erp24/migrations/m240821_114356_create_table_store_guid_buh.php [new file with mode: 0755]

diff --git a/erp24/migrations/m240821_114356_create_table_motivation_buh.php b/erp24/migrations/m240821_114356_create_table_motivation_buh.php
deleted file mode 100755 (executable)
index 9603b99..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-use yii\db\Migration;
-
-/**
- * Class m240821_114356_create_table_motivation_buh
- */
-class m240821_114356_create_table_motivation_buh extends Migration
-{
-    const TABLE_NAME = "erp24.store_guid_buh";
-
-    /**
-     * {@inheritdoc}
-     */
-    public function safeUp()
-    {
-        $this->createTable(self::TABLE_NAME, [
-            'id' => $this->primaryKey(),
-            'store_id' => $this->integer()->notNull()->comment('store id'),
-            'store_guid' => $this->string()->notNull()->comment('store guid'),
-            'updated_admin_id' => $this->integer()->null()->comment('updated admin id'),
-            'created_admin_id' => $this->integer()->notNull()->comment('created admin id'),
-            'updated_at' => $this->datetime()->null()->comment('Дата изменения записи'),
-            'created_at' => $this->datetime()->notNull()->comment('Дата создания записи'),
-        ]);
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function safeDown()
-    {
-        $this->dropTable(self::TABLE_NAME);
-    }
-}
diff --git a/erp24/migrations/m240821_114356_create_table_store_guid_buh.php b/erp24/migrations/m240821_114356_create_table_store_guid_buh.php
new file mode 100755 (executable)
index 0000000..96b06bf
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m240821_114356_create_table_store_guid_buh
+ */
+class m240821_114356_create_table_store_guid_buh extends Migration
+{
+    const TABLE_NAME = "erp24.store_guid_buh";
+
+    /**
+     * {@inheritdoc}
+     */
+    public function safeUp()
+    {
+        $this->createTable(self::TABLE_NAME, [
+            'id' => $this->primaryKey(),
+            'store_id' => $this->integer()->notNull()->comment('store id'),
+            'store_guid' => $this->string()->notNull()->comment('store guid'),
+            'updated_admin_id' => $this->integer()->null()->comment('updated admin id'),
+            'created_admin_id' => $this->integer()->notNull()->comment('created admin id'),
+            'updated_at' => $this->datetime()->null()->comment('Дата изменения записи'),
+            'created_at' => $this->datetime()->notNull()->comment('Дата создания записи'),
+        ]);
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function safeDown()
+    {
+        $this->dropTable(self::TABLE_NAME);
+    }
+}