From 6b018a4fd37269722770fc0570c83a1d7ff4f1d2 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 28 Jan 2025 15:49:08 +0300 Subject: [PATCH] =?utf8?q?ERP-282=20=D0=9D=D1=83=D0=B6=D0=BD=D0=BE=20?= =?utf8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20=D0=B8=D0=BD=D1=82?= =?utf8?q?=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=20=D0=BD=D0=B0=D1=81=D1=82?= =?utf8?q?=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D0=BC=D0=B0=D0=B3=D0=B0=D0=B7?= =?utf8?q?=D0=B8=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...128_104824_drop_columns_onc_city_store.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 erp24/migrations/m250128_104824_drop_columns_onc_city_store.php 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('Тип магазина')); + } +} -- 2.39.5