From: Aleksey Filippov Date: Wed, 21 Aug 2024 09:46:42 +0000 (+0300) Subject: Добавил таблицу справочник для store_id и guid по магазинам из 1с Бухгалтерии X-Git-Tag: 1.4~31^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f828af1882e7539d04218aecd0d950e392c9d547;p=erp24_rep%2Fyii-erp24%2F.git Добавил таблицу справочник для store_id и guid по магазинам из 1с Бухгалтерии --- 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 index 00000000..9603b998 --- /dev/null +++ b/erp24/migrations/m240821_114356_create_table_motivation_buh.php @@ -0,0 +1,35 @@ +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); + } +}