diff --git a/database/migrations/2021_09_08_191139_split_twofaccounts_uri_in_multiple_columns.php b/database/migrations/2021_09_08_191139_split_twofaccounts_uri_in_multiple_columns.php index 8502631d..de5e9e35 100644 --- a/database/migrations/2021_09_08_191139_split_twofaccounts_uri_in_multiple_columns.php +++ b/database/migrations/2021_09_08_191139_split_twofaccounts_uri_in_multiple_columns.php @@ -23,16 +23,15 @@ public function up() $table->string('otp_type', 10)->nullable(); $table->text('secret')->nullable(); $table->string('algorithm', 20)->nullable(); - $table->unsignedTinyInteger('digits')->nullable(); + $table->unsignedTinyInteger('digits')->default(6); $table->unsignedInteger('period')->nullable(); $table->unsignedBigInteger('counter')->nullable(); }); Schema::table('twofaccounts', function (Blueprint $table){ - $table->string('otp_type')->nullable(false)->change(); - $table->string('secret')->nullable(false)->change(); - $table->string('algorithm')->nullable(false)->change(); - $table->string('digits')->nullable(false)->change(); + $table->string('otp_type', 10)->nullable(false)->change(); + $table->text('secret')->nullable(false)->change(); + $table->string('algorithm', 20)->nullable(false)->change(); }); Schema::table('twofaccounts', function (Blueprint $table) {