]> gitweb.erp-flowers.ru Git - yii-erp24/.git/commitdiff
изменен тип колонки, так как при фильтрации выпадала ошибка о слишком длинном...
authorMarina Zozirova <marina.zozirova@erp-flowers.ru>
Fri, 26 Apr 2024 09:27:54 +0000 (09:27 +0000)
committerAleksey Filippov <aleksey.filippov@erp-flowers.ru>
Fri, 26 Apr 2024 09:27:54 +0000 (09:27 +0000)
erp24/migrations/m240426_092235_change_column_url_type_on_page_statistics.php [new file with mode: 0644]

diff --git a/erp24/migrations/m240426_092235_change_column_url_type_on_page_statistics.php b/erp24/migrations/m240426_092235_change_column_url_type_on_page_statistics.php
new file mode 100644 (file)
index 0000000..47868e1
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m240426_092235_change_column_url_type_on_page_statistics
+ */
+class m240426_092235_change_column_url_type_on_page_statistics extends Migration
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function safeUp()
+    {
+        $this->alterColumn('page_statistics', 'url', $this->text());
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function safeDown()
+    {
+        $this->alterColumn('page_statistics', 'url', $this->string(255));
+    }
+
+}