@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('attribute_group', function (Blueprint $table) { |
|
| 16 | + Schema::create('attribute_group', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('title'); |
| 19 | 19 | $table->enum('type', array('selectbox'))->default('selectbox'); |
@@ -24,11 +24,11 @@ discard block |
||
| 24 | 24 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
| 25 | 25 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
| 26 | 26 | $table->timestamps(); |
| 27 | - $table->unique(array('title','shop_id'), 'unique_attribute_group_title'); |
|
| 27 | + $table->unique(array('title', 'shop_id'), 'unique_attribute_group_title'); |
|
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | 30 | |
| 31 | - Schema::create('attribute', function (Blueprint $table) { |
|
| 31 | + Schema::create('attribute', function(Blueprint $table) { |
|
| 32 | 32 | $table->increments('id'); |
| 33 | 33 | $table->string('value'); |
| 34 | 34 | $table->integer('attribute_group_id')->unsigned(); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
| 37 | 37 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
| 38 | 38 | $table->timestamps(); |
| 39 | - $table->unique(array('attribute_group_id','value'), 'unique_attribute_value'); |
|
| 39 | + $table->unique(array('attribute_group_id', 'value'), 'unique_attribute_value'); |
|
| 40 | 40 | }); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function down() |
| 36 | 36 | { |
| 37 | - // |
|
| 37 | + // |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -13,12 +13,12 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::table('extra_field', function (Blueprint $table) { |
|
| 16 | + Schema::table('extra_field', function(Blueprint $table) { |
|
| 17 | 17 | $table->integer('product_category_id')->unsigned()->nullable(); |
| 18 | 18 | $table->foreign('product_category_id')->references('id')->on('product_category')->onDelete('set null'); |
| 19 | 19 | }); |
| 20 | 20 | |
| 21 | - Schema::create('extra_field_related_product_category', function (Blueprint $table) { |
|
| 21 | + Schema::create('extra_field_related_product_category', function(Blueprint $table) { |
|
| 22 | 22 | $table->increments('id'); |
| 23 | 23 | $table->integer('extra_field_id')->unsigned(); |
| 24 | 24 | $table->foreign('extra_field_id', 'unique_related_extra_field_id')->references('id')->on('extra_field')->onDelete('cascade'); |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function down() |
| 36 | 36 | { |
| 37 | - // |
|
| 37 | + // |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('tax_rate', function (Blueprint $table) { |
|
| 16 | + Schema::create('tax_rate', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('title')->nullable(); |
| 19 | 19 | $table->decimal('rate', 12, 4)->nullable(); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
| 24 | 24 | $table->timestamps(); |
| 25 | 25 | |
| 26 | - $table->unique(array('rate','shop_id'), 'unique_tax_rate_rate'); |
|
| 26 | + $table->unique(array('rate', 'shop_id'), 'unique_tax_rate_rate'); |
|
| 27 | 27 | }); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('content', function (Blueprint $table) { |
|
| 16 | + Schema::create('content', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->boolean('active')->default(false); |
| 19 | 19 | $table->string('title')->nullable(); |
@@ -28,10 +28,10 @@ discard block |
||
| 28 | 28 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
| 29 | 29 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
| 30 | 30 | $table->timestamps(); |
| 31 | - $table->unique(array('title','shop_id'), 'unique_content_title'); |
|
| 31 | + $table->unique(array('title', 'shop_id'), 'unique_content_title'); |
|
| 32 | 32 | }); |
| 33 | 33 | |
| 34 | - Schema::create('content_image', function (Blueprint $table) { |
|
| 34 | + Schema::create('content_image', function(Blueprint $table) { |
|
| 35 | 35 | $table->increments('id'); |
| 36 | 36 | $table->integer('content_id')->unsigned(); |
| 37 | 37 | $table->foreign('content_id')->references('id')->on('content')->onDelete('cascade'); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | // Creates the users table |
| 51 | - Schema::create('content_group', function ($table) { |
|
| 51 | + Schema::create('content_group', function($table) { |
|
| 52 | 52 | $table->increments('id'); |
| 53 | 53 | $table->boolean('active')->default(false); |
| 54 | 54 | $table->integer('rank')->default(0); |
@@ -64,12 +64,12 @@ discard block |
||
| 64 | 64 | $table->string('slug'); |
| 65 | 65 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
| 66 | 66 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
| 67 | - $table->unique(array('title','shop_id'), 'unique_content_group_title'); |
|
| 67 | + $table->unique(array('title', 'shop_id'), 'unique_content_group_title'); |
|
| 68 | 68 | $table->timestamps(); |
| 69 | 69 | }); |
| 70 | 70 | |
| 71 | 71 | |
| 72 | - Schema::table('content', function (Blueprint $table) { |
|
| 72 | + Schema::table('content', function(Blueprint $table) { |
|
| 73 | 73 | $table->integer('content_group_id')->unsigned()->nullable(); |
| 74 | 74 | $table->foreign('content_group_id', 'c_content_group_id_fk')->references('id')->on('content_group')->onDelete('set null'); |
| 75 | 75 | }); |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function down() |
| 36 | 36 | { |
| 37 | - // |
|
| 37 | + // |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('product_category', function (Blueprint $table) { |
|
| 16 | + Schema::create('product_category', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->boolean('active')->default(false); |
| 19 | 19 | $table->string('title')->nullable(); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $table->timestamps(); |
| 40 | 40 | }); |
| 41 | 41 | |
| 42 | - Schema::create('product_category_image', function (Blueprint $table) { |
|
| 42 | + Schema::create('product_category_image', function(Blueprint $table) { |
|
| 43 | 43 | $table->increments('id'); |
| 44 | 44 | $table->string('file')->nullable(); |
| 45 | 45 | $table->string('path')->nullable(); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $table->timestamps(); |
| 55 | 55 | }); |
| 56 | 56 | |
| 57 | - Schema::create('product_category_related_extra_field', function (Blueprint $table) { |
|
| 57 | + Schema::create('product_category_related_extra_field', function(Blueprint $table) { |
|
| 58 | 58 | $table->increments('id'); |
| 59 | 59 | $table->integer('extra_field_id')->unsigned()->nullable(); |
| 60 | 60 | $table->foreign('extra_field_id', 'pcref_extra_field_id_fk')->references('id')->on('extra_field')->onDelete('cascade'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('language', function (Blueprint $table) { |
|
| 15 | + Schema::create('language', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->text('language')->nullable(); |
| 18 | 18 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
@@ -22,11 +22,11 @@ discard block |
||
| 22 | 22 | $table->timestamps(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - Schema::table('shop', function (Blueprint $table) { |
|
| 25 | + Schema::table('shop', function(Blueprint $table) { |
|
| 26 | 26 | $table->foreign('language_id')->references('id')->on('language')->onDelete('set null'); |
| 27 | 27 | }); |
| 28 | 28 | |
| 29 | - Schema::table('user', function (Blueprint $table) { |
|
| 29 | + Schema::table('user', function(Blueprint $table) { |
|
| 30 | 30 | $table->foreign('language_id')->references('id')->on('language')->onDelete('set null'); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('order_payment_log', function (Blueprint $table) { |
|
| 16 | + Schema::create('order_payment_log', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->enum('type', array('mollie'))->nullable(); |
| 19 | 19 | $table->longText('log'); |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function down() |
| 36 | 36 | { |
| 37 | - // |
|
| 37 | + // |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('news', function (Blueprint $table) { |
|
| 16 | + Schema::create('news', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('title')->nullable(); |
| 19 | 19 | $table->text('short_description')->nullable(); |
@@ -28,11 +28,11 @@ discard block |
||
| 28 | 28 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
| 29 | 29 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
| 30 | 30 | $table->timestamps(); |
| 31 | - $table->unique(array('title','shop_id'), 'unique_news_title'); |
|
| 31 | + $table->unique(array('title', 'shop_id'), 'unique_news_title'); |
|
| 32 | 32 | }); |
| 33 | 33 | |
| 34 | 34 | |
| 35 | - Schema::create('news_image', function (Blueprint $table) { |
|
| 35 | + Schema::create('news_image', function(Blueprint $table) { |
|
| 36 | 36 | $table->increments('id'); |
| 37 | 37 | $table->integer('news_id')->unsigned(); |
| 38 | 38 | $table->foreign('news_id')->references('id')->on('news')->onDelete('cascade'); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | // Creates the users table |
| 51 | - Schema::create('news_group', function ($table) { |
|
| 51 | + Schema::create('news_group', function($table) { |
|
| 52 | 52 | $table->increments('id'); |
| 53 | 53 | $table->boolean('active')->default(false); |
| 54 | 54 | $table->integer('rank')->default(0); |
@@ -61,12 +61,12 @@ discard block |
||
| 61 | 61 | $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade'); |
| 62 | 62 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
| 63 | 63 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
| 64 | - $table->unique(array('title','shop_id'), 'unique_news_group_title'); |
|
| 64 | + $table->unique(array('title', 'shop_id'), 'unique_news_group_title'); |
|
| 65 | 65 | $table->timestamps(); |
| 66 | 66 | }); |
| 67 | 67 | |
| 68 | 68 | |
| 69 | - Schema::table('news', function (Blueprint $table) { |
|
| 69 | + Schema::table('news', function(Blueprint $table) { |
|
| 70 | 70 | $table->integer('news_group_id')->unsigned()->nullable(); |
| 71 | 71 | $table->foreign('news_group_id')->references('id')->on('news_group')->onDelete('set null'); |
| 72 | 72 | }); |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function down() |
| 36 | 36 | { |
| 37 | - // |
|
| 37 | + // |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('html_block', function (Blueprint $table) { |
|
| 15 | + Schema::create('html_block', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->boolean('active')->default(false); |
| 18 | 18 | $table->string('title')->nullable(); |