From: fomichev Date: Tue, 14 Jan 2025 09:57:53 +0000 (+0300) Subject: Изменение мягкого удаления X-Git-Tag: 1.7~83^2~2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=7839c44f59b1f58d2079bdcb3f8721f403705175;p=erp24_rep%2Fyii-erp24%2F.git Изменение мягкого удаления --- 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'); } }