|
@@ -17,7 +17,7 @@ discard block |
|
|
block discarded – undo |
|
17
|
17
|
$related_pivot_key = config('promocodes.related_pivot_key', 'user_id'); |
|
18
|
18
|
$foreign_pivot_key = config('promocodes.foreign_pivot_key', 'promocode_id'); |
|
19
|
19
|
|
|
20
|
|
- Schema::create($table_name, function (Blueprint $table) { |
|
|
20
|
+ Schema::create($table_name, function(Blueprint $table) { |
|
21
|
21
|
$table->increments('id'); |
|
22
|
22
|
|
|
23
|
23
|
$table->string('code', 32)->unique(); |
|
@@ -30,7 +30,7 @@ discard block |
|
|
block discarded – undo |
|
30
|
30
|
$table->timestamp('expires_at')->nullable(); |
|
31
|
31
|
}); |
|
32
|
32
|
|
|
33
|
|
- Schema::create($relation_table, function (Blueprint $table) use ($table_name, $related_pivot_key, $foreign_pivot_key) { |
|
|
33
|
+ Schema::create($relation_table, function(Blueprint $table) use ($table_name, $related_pivot_key, $foreign_pivot_key) { |
|
34
|
34
|
$table->increments('id'); |
|
35
|
35
|
|
|
36
|
36
|
$table->unsignedBigInteger($related_pivot_key); |
Please login to merge, or discard this patch.