summaryrefslogtreecommitdiff
path: root/db/migrations/2018_10_01_000000_create_users_tables.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-11-10 20:42:48 +0100
committermsquare <msquare@notrademark.de>2018-12-02 12:53:31 +0100
commit951828a4f1175f99666a48629ea125640cc7c598 (patch)
tree1bba1433ec048de92340471907bd8edfa07f5c93 /db/migrations/2018_10_01_000000_create_users_tables.php
parent720b46f60f1033bc2249b846363f883fa3644ab8 (diff)
Migration: Moved reference method to trait
Diffstat (limited to 'db/migrations/2018_10_01_000000_create_users_tables.php')
-rw-r--r--db/migrations/2018_10_01_000000_create_users_tables.php14
1 files changed, 1 insertions, 13 deletions
diff --git a/db/migrations/2018_10_01_000000_create_users_tables.php b/db/migrations/2018_10_01_000000_create_users_tables.php
index 55ee382e..d6778c52 100644
--- a/db/migrations/2018_10_01_000000_create_users_tables.php
+++ b/db/migrations/2018_10_01_000000_create_users_tables.php
@@ -16,6 +16,7 @@ use stdClass;
class CreateUsersTables extends Migration
{
use ChangesReferences;
+ use Reference;
/**
* Run the migration
@@ -273,17 +274,4 @@ class CreateUsersTables extends Migration
$this->schema->drop('users');
}
-
- /**
- * @param Blueprint $table
- */
- protected function referencesUser(Blueprint $table)
- {
- $table->unsignedInteger('user_id');
-
- $table->primary('user_id');
- $table->foreign('user_id')
- ->references('id')->on('users')
- ->onDelete('cascade');
- }
}