Oleg K 4 лет назад
Родитель
Сommit
a7ec26edc5
1 измененных файлов с 2 добавлено и 2 удалено
  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');
     }
 }