From: fomichev Date: Tue, 14 Jan 2025 09:56:44 +0000 (+0300) Subject: Изменение мягкого удаления X-Git-Tag: 1.7~83^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=3a236c98a18f9e02705b2f6a69d2200dbe9eadf8;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 00bc9655..10fcc5f9 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 @@ -45,9 +45,8 @@ class m250113_104214_add_deleted_at_column_to_timetable extends Migration return; } - if ($this->db->schema->getTableSchema(self::TABLE_NAME)->getColumn('active') !== null) { - $this->dropColumn(self::TABLE_NAME, 'active'); - $this->dropColumn(self::TABLE_NAME, 'deleted_by'); + if ($this->db->schema->getTableSchema(self::TABLE_NAME)->getColumn('deleted_at') !== null) { + $this->dropColumn(self::TABLE_NAME, 'deleted_at'); } }