Skip to content

Commit

Permalink
Merge pull request #16 from ipkpjersi/develop
Browse files Browse the repository at this point in the history
Fixed 2FA foreign key constraint
  • Loading branch information
ipkpjersi authored Mar 17, 2024
2 parents 763e01e + e3c4a2d commit ec4bb0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up(): void
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id')->nullable();
//If our user gets deleted we want get rid of their security stuff
$table->foreign('id')->references('id')->on('users')->onDelete('cascade');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->boolean('google2fa_enable')->default(false);
$table->string('google2fa_secret')->nullable();
$table->timestamps();
Expand Down

0 comments on commit ec4bb0b

Please sign in to comment.