]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-282 Нужно сделать интерфейс настройки магазина
authormarina <m.zozirova@gmail.com>
Mon, 27 Jan 2025 12:04:25 +0000 (15:04 +0300)
committermarina <m.zozirova@gmail.com>
Mon, 27 Jan 2025 12:04:25 +0000 (15:04 +0300)
erp24/migrations/m250127_103546_drop_column_in_city_store_params.php [new file with mode: 0644]

diff --git a/erp24/migrations/m250127_103546_drop_column_in_city_store_params.php b/erp24/migrations/m250127_103546_drop_column_in_city_store_params.php
new file mode 100644 (file)
index 0000000..fa4c7a2
--- /dev/null
@@ -0,0 +1,40 @@
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m250127_103546_drop_column_in_city_store_params
+ */
+class m250127_103546_drop_column_in_city_store_params extends Migration
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function safeUp()
+    {
+        $this->dropColumn('city_store_params', 'bush_id');
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function safeDown()
+    {
+        $this->addColumn('city_store_params', 'bush_id', $this->integer()->comment('ID куста'));
+    }
+
+    /*
+    // Use up()/down() to run migration code without a transaction.
+    public function up()
+    {
+
+    }
+
+    public function down()
+    {
+        echo "m250127_103546_drop_column_in_city_store_params cannot be reverted.\n";
+
+        return false;
+    }
+    */
+}