From: marina Date: Thu, 27 Feb 2025 07:30:44 +0000 (+0300) Subject: ERP-302 Редактирование букета X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e19591898960660a754be693c0826f4ecd54cd69;p=erp24_rep%2Fyii-erp24%2F.git ERP-302 Редактирование букета --- 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'); + } + } +}