From a866ccf4a066f785c6d6301f67c84144a4d15a85 Mon Sep 17 00:00:00 2001 From: marina Date: Mon, 27 Jan 2025 15:04:25 +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 --- ...03546_drop_column_in_city_store_params.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 erp24/migrations/m250127_103546_drop_column_in_city_store_params.php diff --git a/erp24/migrations/m250127_103546_drop_column_in_city_store_params.php b/erp24/migrations/m250127_103546_drop_column_in_city_store_params.php new file mode 100644 index 00000000..fa4c7a22 --- /dev/null +++ b/erp24/migrations/m250127_103546_drop_column_in_city_store_params.php @@ -0,0 +1,40 @@ +dropColumn('city_store_params', 'bush_id'); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->addColumn('city_store_params', 'bush_id', $this->integer()->comment('ID куста')); + } + + /* + // Use up()/down() to run migration code without a transaction. + public function up() + { + + } + + public function down() + { + echo "m250127_103546_drop_column_in_city_store_params cannot be reverted.\n"; + + return false; + } + */ +} -- 2.39.5