Quellcode durchsuchen

add tbl prefix to migration

Oleg K vor 4 Jahren
Ursprung
Commit
a7ec26edc5
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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');
     }
 }