From e0068151f428bc3b9d375b8e8f37166052a5db59 Mon Sep 17 00:00:00 2001 From: vladfo Date: Fri, 18 Oct 2024 19:48:49 +0300 Subject: [PATCH] =?utf8?q?=D0=A1=D1=82=D0=B0=D0=B2=D0=BB=D1=8E=20=D0=B7?= =?utf8?q?=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=B5=20?= =?utf8?q?=D0=BD=D1=83=D0=BB=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...65706_alter_table_city_store_drop_column_cluster_id.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 index 2fe883c0..0ec9fc31 100644 --- 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 @@ -27,13 +27,10 @@ class m241018_065706_alter_table_city_store_drop_column_cluster_id extends Migra { - $this->addColumn(self::TABLE_NAME, 'cluster_id', $this->integer()->after('administrator_id')); + $this->addColumn(self::TABLE_NAME, 'cluster_id', $this->integer()->null()->after('administrator_id')); + $this->update(self::TABLE_NAME, ['cluster_id' => null]); - $this->update(self::TABLE_NAME, ['cluster_id' => 0]); - - - $this->alterColumn(self::TABLE_NAME, 'cluster_id', $this->integer()->notNull()); } /* -- 2.39.5