From 7839c44f59b1f58d2079bdcb3f8721f403705175 Mon Sep 17 00:00:00 2001 From: fomichev Date: Tue, 14 Jan 2025 12:57:53 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D0=B5=20=D0=BC=D1=8F=D0=B3=D0=BA=D0=BE=D0=B3=D0=BE=20=D1=83?= =?utf8?q?=D0=B4=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 --- .../m250113_104214_add_deleted_at_column_to_timetable.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erp24/migrations/m250113_104214_add_deleted_at_column_to_timetable.php b/erp24/migrations/m250113_104214_add_deleted_at_column_to_timetable.php index 10fcc5f9..cd24e66a 100644 --- a/erp24/migrations/m250113_104214_add_deleted_at_column_to_timetable.php +++ b/erp24/migrations/m250113_104214_add_deleted_at_column_to_timetable.php @@ -17,7 +17,7 @@ class m250113_104214_add_deleted_at_column_to_timetable extends Migration return; } - if ($this->db->schema->getTableSchema(self::TABLE_NAME)->getColumn('active') === null) { + if ($this->db->schema->getTableSchema(self::TABLE_NAME)->getColumn('deleted_at') === null) { $this->addColumn( self::TABLE_NAME, 'active', @@ -46,7 +46,8 @@ class m250113_104214_add_deleted_at_column_to_timetable extends Migration } if ($this->db->schema->getTableSchema(self::TABLE_NAME)->getColumn('deleted_at') !== null) { - + $this->dropColumn(self::TABLE_NAME, 'active'); + $this->dropColumn(self::TABLE_NAME, 'deleted_by'); $this->dropColumn(self::TABLE_NAME, 'deleted_at'); } } -- 2.39.5