From: marina Date: Tue, 28 Jan 2025 12:49:08 +0000 (+0300) Subject: ERP-282 Нужно сделать интерфейс настройки магазина X-Git-Tag: 1.7~35^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6b018a4fd37269722770fc0570c83a1d7ff4f1d2;p=erp24_rep%2Fyii-erp24%2F.git ERP-282 Нужно сделать интерфейс настройки магазина --- diff --git a/erp24/migrations/m250128_104824_drop_columns_onc_city_store.php b/erp24/migrations/m250128_104824_drop_columns_onc_city_store.php new file mode 100644 index 00000000..fc68fd7a --- /dev/null +++ b/erp24/migrations/m250128_104824_drop_columns_onc_city_store.php @@ -0,0 +1,31 @@ +dropColumn('erp24.city_store', 'region'); + $this->dropColumn('erp24.city_store', 'city'); + $this->dropColumn('erp24.city_store', 'district'); + $this->dropColumn('erp24.city_store', 'type'); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->addColumn('erp24.city_store', 'region', $this->integer()->comment('Регион')); + $this->addColumn('erp24.city_store', 'city', $this->integer()->comment('Город')); + $this->addColumn('erp24.city_store', 'district', $this->integer()->comment('Район')); + $this->addColumn('erp24.city_store', 'type', $this->integer()->comment('Тип магазина')); + } +}