From: marina Date: Mon, 5 Aug 2024 09:03:45 +0000 (+0300) Subject: ERP-85 Реализовать обмен данных с 1С Бухгалтерия X-Git-Tag: 1.4~22^2~43 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cc42448b16bac56629b5391aef9ed2c30e3d4841;p=erp24_rep%2Fyii-erp24%2F.git ERP-85 Реализовать обмен данных с 1С Бухгалтерия миграция --- 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 index 00000000..6d56733d --- /dev/null +++ b/erp24/migrations/m240805_071431_create_api_cron_buh_test_table.php @@ -0,0 +1,32 @@ +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}}'); + } +}