--- /dev/null
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m250227_070810_add_error_column_on_bouquet_composition
+ */
+class m250227_070810_add_error_column_on_bouquet_composition extends Migration
+{
+ public function safeUp()
+ {
+ $table = 'erp24.bouquet_composition';
+
+ if (!$this->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');
+ }
+ }
+}