]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавил таблицу справочник для store_id и guid по магазинам из 1с Бухгалтерии
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 21 Aug 2024 09:46:42 +0000 (12:46 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 21 Aug 2024 09:46:42 +0000 (12:46 +0300)
erp24/migrations/m240821_114356_create_table_motivation_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
new file mode 100755 (executable)
index 0000000..9603b99
--- /dev/null
@@ -0,0 +1,35 @@
+<?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);
+    }
+}