Enforce data consistency

This commit is contained in:
2020-04-29 21:56:41 +01:00
parent f514c4f848
commit beee71e4c3
4 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ class CreateProfilesTable extends Migration
'gravatar' // Email profile
]);
$table->text('socialLinks');
$table->bigIncrements('userID');
$table->bigInteger('userID')->unsigned();
$table->timestamps();
$table->foreign('userID')->references('id')->on('users')->onDelete('cascade');