remove foreign keys from migration

This commit is contained in:
2018-11-05 12:44:30 -06:00
parent 4796b593ad
commit 27c8934d60
3 changed files with 1 additions and 3 deletions

View File

@@ -17,7 +17,6 @@ class CreateEsiTokens extends Migration
Schema::create('EsiTokens', function(Blueprint $table) {
$table->integer('id')->increments();
$table->integer('character_id')->unique();
$table->foreign('character_id')->references('character_id')->on('users');
$table->string('access_token');
$table->string('refresh_token');
$table->integer('expires_in');

View File

@@ -16,7 +16,7 @@ class CreateUserRolesTable extends Migration
if(!Schema::hasTable('user_roles')) {
Schema::create('user_roles', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id');
$table->integer('character_id');
$table->string('role')->default('None');
$table->timestamps();
});

View File

@@ -17,7 +17,6 @@ class CreateUserEsiScopes extends Migration
Schema::create('UserEsiScopes', function(Blueprint $table) {
$table->integer('id')->increments();
$table->integer('character_id');
$table->foreign('character_id')->references('character_id')->on('users');
$table->string('scope');
$table->timestamps();
});