소스 검색

Update migrations for consistent column changes without doctrine/dbal

Bubka 1 년 전
부모
커밋
dd44b49c4e

+ 1 - 1
database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php

@@ -18,7 +18,7 @@ class AlterEncryptedColumnsToText extends Migration
         if ('sqlite' !== $driver) {
             
             Schema::table('twofaccounts', function (Blueprint $table) {
-                $table->text('account')->change();
+                $table->text('account')->nullable()->change();
             });
 
             Schema::table('twofaccounts', function (Blueprint $table) {

+ 1 - 1
database/migrations/2020_12_04_073605_alter_encrypted_columns_to_text_for_sqlite.php

@@ -18,7 +18,7 @@ class AlterEncryptedColumnsToTextForSqlite extends Migration
         if ('sqlite' === $driver) {
             
             Schema::table('twofaccounts', function (Blueprint $table) {
-                $table->text('account')->change();
+                $table->text('account')->nullable()->change();
             });
         }
     }