From 7249b15e4813b5e9635927d5b45197764bd75cdf Mon Sep 17 00:00:00 2001 From: vladfo Date: Fri, 18 Oct 2024 10:01:06 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?utf8?q?=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D1=8E=20=D1=83=D0=B4?= =?utf8?q?=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...able_city_store_drop_column_cluster_id.php | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 erp24/migrations/m241018_065706_alter_table_city_store_drop_column_cluster_id.php diff --git a/erp24/migrations/m241018_065706_alter_table_city_store_drop_column_cluster_id.php b/erp24/migrations/m241018_065706_alter_table_city_store_drop_column_cluster_id.php new file mode 100644 index 00000000..2d549a36 --- /dev/null +++ b/erp24/migrations/m241018_065706_alter_table_city_store_drop_column_cluster_id.php @@ -0,0 +1,46 @@ +dropColumn(self::TABLE_NAME, 'cluster_id'); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + + $this->addColumn(self::TABLE_NAME, 'cluster_id', $this->integer()->notNull()->after('administrator_id')); + } + + /* + // Use up()/down() to run migration code without a transaction. + public function up() + { + + } + + public function down() + { + echo "m241018_065706_alter_table_city_store_drop_column_cluster_id cannot be reverted.\n"; + + return false; + } + */ +} -- 2.39.5