]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-85 Реализовать обмен данных с 1С Бухгалтерия
authormarina <m.zozirova@gmail.com>
Mon, 5 Aug 2024 09:03:45 +0000 (12:03 +0300)
committermarina <m.zozirova@gmail.com>
Mon, 5 Aug 2024 09:03:45 +0000 (12:03 +0300)
миграция

erp24/migrations/m240805_071431_create_api_cron_buh_test_table.php [new file with mode: 0644]

diff --git a/erp24/migrations/m240805_071431_create_api_cron_buh_test_table.php b/erp24/migrations/m240805_071431_create_api_cron_buh_test_table.php
new file mode 100644 (file)
index 0000000..6d56733
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Handles the creation of table `{{%api_cron_buh_test}}`.
+ */
+class m240805_071431_create_api_cron_buh_test_table extends Migration
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function safeUp()
+    {
+        $this->createTable('{{%api_cron_buh_test}}', [
+            'id' => $this->primaryKey(),
+            'date' => $this->dateTime()->notNull(),
+            'date_up' => $this->dateTime()->notNull(),
+            'status' => $this->integer()->notNull()->defaultValue(0)->comment('Статус'),
+            'json_post' => $this->text()->null()->comment('Тело запроса'),
+            'request_id' => $this->string(36)->notNull()->comment('id запроса'),
+        ]);
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function safeDown()
+    {
+        $this->dropTable('{{%api_cron_buh_test}}');
+    }
+}