]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-243 Действия по замене (II этап)
authormarina <m.zozirova@gmail.com>
Tue, 3 Dec 2024 13:51:18 +0000 (16:51 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 3 Dec 2024 13:51:18 +0000 (16:51 +0300)
erp24/migrations/m241203_124911_change_number_column_on_replacement_invoice.php [new file with mode: 0644]

diff --git a/erp24/migrations/m241203_124911_change_number_column_on_replacement_invoice.php b/erp24/migrations/m241203_124911_change_number_column_on_replacement_invoice.php
new file mode 100644 (file)
index 0000000..dbaa865
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m241203_124911_change_number_column_on_replacement_invoice
+ */
+class m241203_124911_change_number_column_on_replacement_invoice extends Migration
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function safeUp()
+    {
+        $this->alterColumn( 'erp24.replacement_invoice', 'number',  $this->string(100)->comment('Название документа'));
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function safeDown()
+    {
+        $this->alterColumn( 'erp24.replacement_invoice', 'number',  $this->string(100)->notNull()->comment('Название документа'));
+    }
+}