@@ -12,20 +12,20 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create( 'nodes', function ( Blueprint $table ) |
|
15 | + Schema::create('nodes', function(Blueprint $table) |
|
16 | 16 | { |
17 | - $table->uuid( 'id' ); |
|
18 | - $table->string( 'name' ); |
|
19 | - $table->string( 'slug' ); |
|
20 | - $table->uuid( 'parent_id' )->nullable(); |
|
21 | - $table->integer( 'lft' )->nullable(); |
|
22 | - $table->integer( 'rgt' )->nullable(); |
|
23 | - $table->integer( 'depth' )->nullable(); |
|
24 | - $table->string( 'content_type' )->nullable(); |
|
25 | - $table->integer( 'content_id' )->nullable(); |
|
26 | - $table->integer( 'item_position' )->nullable(); |
|
27 | - $table->tinyInteger( 'active' )->default( 0 ); |
|
28 | - $table->string( 'locale', 6 )->nullable(); |
|
17 | + $table->uuid('id'); |
|
18 | + $table->string('name'); |
|
19 | + $table->string('slug'); |
|
20 | + $table->uuid('parent_id')->nullable(); |
|
21 | + $table->integer('lft')->nullable(); |
|
22 | + $table->integer('rgt')->nullable(); |
|
23 | + $table->integer('depth')->nullable(); |
|
24 | + $table->string('content_type')->nullable(); |
|
25 | + $table->integer('content_id')->nullable(); |
|
26 | + $table->integer('item_position')->nullable(); |
|
27 | + $table->tinyInteger('active')->default(0); |
|
28 | + $table->string('locale', 6)->nullable(); |
|
29 | 29 | $table->timestamps(); |
30 | 30 | } ); |
31 | 31 | } |
@@ -37,6 +37,6 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function down() |
39 | 39 | { |
40 | - Schema::drop( 'nodes' ); |
|
40 | + Schema::drop('nodes'); |
|
41 | 41 | } |
42 | 42 | } |
@@ -10,10 +10,10 @@ |
||
10 | 10 | */ |
11 | 11 | public function up() |
12 | 12 | { |
13 | - Schema::table( 'settings', function ( Blueprint $table ) |
|
13 | + Schema::table('settings', function(Blueprint $table) |
|
14 | 14 | { |
15 | - $table->dropColumn( 'id' ); |
|
16 | - $table->string( 'name' )->primary()->change(); |
|
15 | + $table->dropColumn('id'); |
|
16 | + $table->string('name')->primary()->change(); |
|
17 | 17 | } ); |
18 | 18 | } |
19 | 19 | } |
@@ -10,10 +10,10 @@ |
||
10 | 10 | */ |
11 | 11 | public function up() |
12 | 12 | { |
13 | - Schema::table( 'links', function( Blueprint $table ) |
|
13 | + Schema::table('links', function(Blueprint $table) |
|
14 | 14 | { |
15 | - $table->string( 'title' )->nullable()->change(); |
|
16 | - $table->text( 'href' )->nullable()->change(); |
|
15 | + $table->string('title')->nullable()->change(); |
|
16 | + $table->text('href')->nullable()->change(); |
|
17 | 17 | } ); |
18 | 18 | } |
19 | 19 | } |
20 | 20 | \ No newline at end of file |
@@ -12,12 +12,12 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create( 'redirects', function ( Blueprint $table ) |
|
15 | + Schema::create('redirects', function(Blueprint $table) |
|
16 | 16 | { |
17 | 17 | $table->timestamps(); |
18 | - $table->increments( 'id' ); |
|
19 | - $table->text( 'from_url' ); |
|
20 | - $table->text( 'to_url' ); |
|
18 | + $table->increments('id'); |
|
19 | + $table->text('from_url'); |
|
20 | + $table->text('to_url'); |
|
21 | 21 | } ); |
22 | 22 | } |
23 | 23 | } |
24 | 24 | \ No newline at end of file |
@@ -10,15 +10,15 @@ |
||
10 | 10 | */ |
11 | 11 | public function up() |
12 | 12 | { |
13 | - Schema::create( 'setting_translations', function( Blueprint $table ) |
|
13 | + Schema::create('setting_translations', function(Blueprint $table) |
|
14 | 14 | { |
15 | - $table->increments( 'id' ); |
|
15 | + $table->increments('id'); |
|
16 | 16 | $table->timestamps(); |
17 | - $table->string( 'setting_name' )->nullable(); |
|
18 | - $table->longText( 'value' )->nullable(); |
|
19 | - $table->string( 'locale' )->index(); |
|
20 | - $table->unique( [ 'setting_name', 'locale' ] ); |
|
21 | - $table->foreign( 'setting_name' )->references( 'name' )->on( 'settings' )->onDelete( 'cascade' ); |
|
17 | + $table->string('setting_name')->nullable(); |
|
18 | + $table->longText('value')->nullable(); |
|
19 | + $table->string('locale')->index(); |
|
20 | + $table->unique([ 'setting_name', 'locale' ]); |
|
21 | + $table->foreign('setting_name')->references('name')->on('settings')->onDelete('cascade'); |
|
22 | 22 | } ); |
23 | 23 | } |
24 | 24 | } |
25 | 25 | \ No newline at end of file |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('translator_languages', function ($table) { |
|
15 | + Schema::create('translator_languages', function($table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('locale', 6)->unique(); |
18 | 18 | $table->string('name', 60)->unique(); |
@@ -12,13 +12,13 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create( 'settings', function ( Blueprint $table ) |
|
15 | + Schema::create('settings', function(Blueprint $table) |
|
16 | 16 | { |
17 | 17 | $table->timestamps(); |
18 | - $table->increments( 'id' ); |
|
19 | - $table->string( 'type' ); |
|
20 | - $table->string( 'name' )->unique(); |
|
21 | - $table->text( 'value' )->nullable(); |
|
18 | + $table->increments('id'); |
|
19 | + $table->string('type'); |
|
20 | + $table->string('name')->unique(); |
|
21 | + $table->text('value')->nullable(); |
|
22 | 22 | } ); |
23 | 23 | } |
24 | 24 | } |
25 | 25 | \ No newline at end of file |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('translator_translations', function ($table) { |
|
15 | + Schema::create('translator_translations', function($table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('locale', 6); |
18 | 18 | $table->string('namespace', 150)->default('*'); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $table->boolean('locked')->default(false); |
24 | 24 | $table->timestamps(); |
25 | 25 | $table->foreign('locale')->references('locale')->on('translator_languages'); |
26 | - $table->unique(['locale', 'namespace', 'group', 'item']); |
|
26 | + $table->unique([ 'locale', 'namespace', 'group', 'item' ]); |
|
27 | 27 | }); |
28 | 28 | } |
29 | 29 |
@@ -12,12 +12,12 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::table( 'nodes', function ( Blueprint $table ) |
|
15 | + Schema::table('nodes', function(Blueprint $table) |
|
16 | 16 | { |
17 | - $table->string( 'meta_title' )->nullable(); |
|
18 | - $table->string( 'meta_author' )->nullable(); |
|
19 | - $table->string( 'meta_keywords' )->nullable(); |
|
20 | - $table->string( 'meta_description' )->nullable(); |
|
17 | + $table->string('meta_title')->nullable(); |
|
18 | + $table->string('meta_author')->nullable(); |
|
19 | + $table->string('meta_keywords')->nullable(); |
|
20 | + $table->string('meta_description')->nullable(); |
|
21 | 21 | } ); |
22 | 22 | } |
23 | 23 | |
@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function down() |
28 | 28 | { |
29 | - Schema::table( 'nodes', function ( Blueprint $table ) |
|
29 | + Schema::table('nodes', function(Blueprint $table) |
|
30 | 30 | { |
31 | - $table->dropColumn( 'meta_title' ); |
|
32 | - $table->dropColumn( 'meta_author' ); |
|
33 | - $table->dropColumn( 'meta_keywords' ); |
|
34 | - $table->dropColumn( 'meta_description' ); |
|
31 | + $table->dropColumn('meta_title'); |
|
32 | + $table->dropColumn('meta_author'); |
|
33 | + $table->dropColumn('meta_keywords'); |
|
34 | + $table->dropColumn('meta_description'); |
|
35 | 35 | } ); |
36 | 36 | } |
37 | 37 | } |