From e19591898960660a754be693c0826f4ecd54cd69 Mon Sep 17 00:00:00 2001 From: marina Date: Thu, 27 Feb 2025 10:30:44 +0300 Subject: [PATCH] =?utf8?q?ERP-302=20=D0=A0=D0=B5=D0=B4=D0=B0=D0=BA=D1=82?= =?utf8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B1=D1=83?= =?utf8?q?=D0=BA=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...dd_error_column_on_bouquet_composition.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 erp24/migrations/m250227_070810_add_error_column_on_bouquet_composition.php diff --git a/erp24/migrations/m250227_070810_add_error_column_on_bouquet_composition.php b/erp24/migrations/m250227_070810_add_error_column_on_bouquet_composition.php new file mode 100644 index 00000000..4492a9b2 --- /dev/null +++ b/erp24/migrations/m250227_070810_add_error_column_on_bouquet_composition.php @@ -0,0 +1,27 @@ +db->schema->getTableSchema($table, true)->getColumn('error_text')) { + $this->addColumn($table, 'error_text', $this->text()); + } + } + + public function safeDown() + { + $table = 'erp24.bouquet_composition'; + + if ($this->db->schema->getTableSchema($table, true)->getColumn('error_text')) { + $this->dropColumn($table, 'error_text'); + } + } +} -- 2.39.5