diff --git a/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php b/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php index a01cbc58..538c8762 100644 --- a/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php +++ b/database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php @@ -18,7 +18,7 @@ public function up() if ('sqlite' !== $driver) { Schema::table('twofaccounts', function (Blueprint $table) { - $table->text('account')->change(); + $table->text('account')->nullable()->change(); }); Schema::table('twofaccounts', function (Blueprint $table) { diff --git a/database/migrations/2020_12_04_073605_alter_encrypted_columns_to_text_for_sqlite.php b/database/migrations/2020_12_04_073605_alter_encrypted_columns_to_text_for_sqlite.php index ed874574..e4099114 100644 --- a/database/migrations/2020_12_04_073605_alter_encrypted_columns_to_text_for_sqlite.php +++ b/database/migrations/2020_12_04_073605_alter_encrypted_columns_to_text_for_sqlite.php @@ -18,7 +18,7 @@ public function up() if ('sqlite' === $driver) { Schema::table('twofaccounts', function (Blueprint $table) { - $table->text('account')->change(); + $table->text('account')->nullable()->change(); }); } }