@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create(config('promocodes.table', 'promocodes'), function (Blueprint $table) { |
|
15 | + Schema::create(config('promocodes.table', 'promocodes'), function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | |
18 | 18 | $table->string('code', 32)->unique(); |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | }); |
27 | 27 | |
28 | 28 | //to match all laravel versions |
29 | - $type = (Schema::getColumnType('users','id') == 'bigint') ? 'unsignedBigInteger' : 'unsignedInteger'; |
|
29 | + $type = (Schema::getColumnType('users', 'id') == 'bigint') ? 'unsignedBigInteger' : 'unsignedInteger'; |
|
30 | 30 | |
31 | - Schema::create(config('promocodes.relation_table', 'promocode_user'), function (Blueprint $table) use ($type) { |
|
31 | + Schema::create(config('promocodes.relation_table', 'promocode_user'), function(Blueprint $table) use ($type) { |
|
32 | 32 | |
33 | 33 | $table->$type('user_id'); |
34 | 34 |