@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('payees', function (Blueprint $table) { |
|
16 | + Schema::table('payees', function(Blueprint $table) { |
|
17 | 17 | $table->timestamp('last_used_at')->nullable(); |
18 | 18 | $table->softDeletes(); |
19 | 19 | }); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function down() |
28 | 28 | { |
29 | - Schema::table('payees', function (Blueprint $table) { |
|
29 | + Schema::table('payees', function(Blueprint $table) { |
|
30 | 30 | $table->dropSoftDeletes(); |
31 | 31 | }); |
32 | 32 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('categories', function (Blueprint $table) { |
|
16 | + Schema::table('categories', function(Blueprint $table) { |
|
17 | 17 | $table->softDeletes(); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('categories', function (Blueprint $table) { |
|
28 | + Schema::table('categories', function(Blueprint $table) { |
|
29 | 29 | $table->dropSoftDeletes(); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('transactions', function (Blueprint $table) { |
|
16 | + Schema::table('transactions', function(Blueprint $table) { |
|
17 | 17 | $table->string('payee_name')->nullable()->change(); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('transactions', function (Blueprint $table) { |
|
28 | + Schema::table('transactions', function(Blueprint $table) { |
|
29 | 29 | $table->string('payee_name')->default('')->change(); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('categories', function (Blueprint $table) { |
|
16 | + Schema::create('categories', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('user_id')->unsigned(); |
19 | 19 | $table->integer('parent_id')->unsigned()->nullable(); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $table->timestamps(); |
22 | 22 | }); |
23 | 23 | |
24 | - Schema::table('categories', function (Blueprint $table) { |
|
24 | + Schema::table('categories', function(Blueprint $table) { |
|
25 | 25 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
26 | 26 | $table->foreign('parent_id')->references('id')->on('categories'); |
27 | 27 | }); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::create('media', function (Blueprint $table) { |
|
14 | + Schema::create('media', function(Blueprint $table) { |
|
15 | 15 | $table->increments('id'); |
16 | 16 | $table->morphs('model'); |
17 | 17 | $table->string('collection_name'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('users', function (Blueprint $table) { |
|
16 | + Schema::table('users', function(Blueprint $table) { |
|
17 | 17 | $table->boolean('use_datepicker')->default(false); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('users', function (Blueprint $table) { |
|
28 | + Schema::table('users', function(Blueprint $table) { |
|
29 | 29 | $table->dropColumn('use_datepicker'); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('payees', function (Blueprint $table) { |
|
16 | + Schema::create('payees', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('user_id')->unsigned(); |
19 | 19 | $table->integer('last_category_id')->unsigned()->nullable(); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $table->timestamps(); |
22 | 22 | }); |
23 | 23 | |
24 | - Schema::table('payees', function (Blueprint $table) { |
|
24 | + Schema::table('payees', function(Blueprint $table) { |
|
25 | 25 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
26 | 26 | $table->foreign('last_category_id')->references('id')->on('categories'); |
27 | 27 | }); |
@@ -13,14 +13,14 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('accounts', function (Blueprint $table) { |
|
16 | + Schema::create('accounts', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('user_id')->unsigned(); |
19 | 19 | $table->string('name'); |
20 | 20 | $table->timestamps(); |
21 | 21 | }); |
22 | 22 | |
23 | - Schema::table('accounts', function (Blueprint $table) { |
|
23 | + Schema::table('accounts', function(Blueprint $table) { |
|
24 | 24 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
25 | 25 | }); |
26 | 26 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('payees', function (Blueprint $table) { |
|
16 | + Schema::table('payees', function(Blueprint $table) { |
|
17 | 17 | $table->dropForeign(['last_category_id']); |
18 | 18 | $table->foreign('last_category_id')->references('id')->on('categories')->onDelete('set null'); |
19 | 19 | }); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function down() |
28 | 28 | { |
29 | - Schema::table('payees', function (Blueprint $table) { |
|
29 | + Schema::table('payees', function(Blueprint $table) { |
|
30 | 30 | $table->dropForeign(['last_category_id']); |
31 | 31 | $table->foreign('last_category_id')->references('id')->on('categories'); |
32 | 32 | }); |