Browse Source

add tbl prefix to migration

Oleg K 4 năm trước cách đây
mục cha
commit
a7ec26edc5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      migrations/m210602_124525_user_type_field.php

+ 2 - 2
migrations/m210602_124525_user_type_field.php

@@ -12,7 +12,7 @@ class m210602_124525_user_type_field extends Migration
      */
     public function safeUp()
     {
-        $this->addColumn('{{user}}', 'type', $this->string(255)->notNull());
+        $this->addColumn('{{%user}}', 'type', $this->string(255)->notNull());
     }
 
     /**
@@ -20,6 +20,6 @@ class m210602_124525_user_type_field extends Migration
      */
     public function safeDown()
     {
-        $this->dropColumn('{{user}}', 'type');
+        $this->dropColumn('{{%user}}', 'type');
     }
 }