From: marina Date: Tue, 28 Jan 2025 07:16:31 +0000 (+0300) Subject: ERP-282 Нужно сделать интерфейс настройки магазина X-Git-Tag: 1.7~35^2~11 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=83cb0d79f39828e709283b64dcdbf599f5226ca0;p=erp24_rep%2Fyii-erp24%2F.git ERP-282 Нужно сделать интерфейс настройки магазина --- diff --git a/erp24/migrations/m250128_071505_add_columns_on_city_store.php b/erp24/migrations/m250128_071505_add_columns_on_city_store.php new file mode 100644 index 00000000..968f861e --- /dev/null +++ b/erp24/migrations/m250128_071505_add_columns_on_city_store.php @@ -0,0 +1,25 @@ +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('Тип магазина')); + } + + public function safeDown() + { + $this->dropColumn('erp24.city_store', 'region'); + $this->dropColumn('erp24.city_store', 'city'); + $this->dropColumn('erp24.city_store', 'district'); + $this->dropColumn('erp24.city_store', 'type'); + } +}