@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::table('repeaters', function (Blueprint $table) {
|
|
| 16 | + Schema::table('repeaters', function(Blueprint $table) {
|
|
| 17 | 17 | $table->string('url')->nullable()->default(null)->after('slug');
|
| 18 | 18 | $table->string('page')->nullable()->default('default')->after('url');
|
| 19 | 19 | }); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function down() |
| 28 | 28 | {
|
| 29 | - Schema::table('repeaters', function (Blueprint $table) {
|
|
| 29 | + Schema::table('repeaters', function(Blueprint $table) {
|
|
| 30 | 30 | $table->dropColumn('url');
|
| 31 | 31 | $table->dropColumn('page');
|
| 32 | 32 | }); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::create('contents', function (Blueprint $table) {
|
|
| 16 | + Schema::create('contents', function(Blueprint $table) {
|
|
| 17 | 17 | $table->increments('id');
|
| 18 | 18 | $table->string('slug');
|
| 19 | 19 | $table->string('type');
|
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::create('modules', function (Blueprint $table) {
|
|
| 16 | + Schema::create('modules', function(Blueprint $table) {
|
|
| 17 | 17 | $table->increments('id');
|
| 18 | 18 | $table->string('name');
|
| 19 | 19 | $table->string('slug');
|
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::create('repeaters', function (Blueprint $table) {
|
|
| 16 | + Schema::create('repeaters', function(Blueprint $table) {
|
|
| 17 | 17 | $table->increments('id');
|
| 18 | 18 | $table->string('slug');
|
| 19 | 19 | $table->longText('json');
|
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::table('pages', function (Blueprint $table) {
|
|
| 16 | + Schema::table('pages', function(Blueprint $table) {
|
|
| 17 | 17 | $table->string('page')->nullable()->default(null)->after('template_id');
|
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | {
|
| 28 | - Schema::table('pages', function (Blueprint $table) {
|
|
| 28 | + Schema::table('pages', function(Blueprint $table) {
|
|
| 29 | 29 | $table->dropColumn('page');
|
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::table('page_blocks', function (Blueprint $table) {
|
|
| 16 | + Schema::table('page_blocks', function(Blueprint $table) {
|
|
| 17 | 17 | $table->string('lang')->nullable()->default(null)->after('order');
|
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | {
|
| 28 | - Schema::table('page_blocks', function (Blueprint $table) {
|
|
| 28 | + Schema::table('page_blocks', function(Blueprint $table) {
|
|
| 29 | 29 | $table->dropColumn('lang');
|
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::table('pages', function (Blueprint $table) {
|
|
| 16 | + Schema::table('pages', function(Blueprint $table) {
|
|
| 17 | 17 | $table->string('roles')->nullable()->default(null)->after('active');
|
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | {
|
| 28 | - Schema::table('pages', function (Blueprint $table) {
|
|
| 28 | + Schema::table('pages', function(Blueprint $table) {
|
|
| 29 | 29 | $table->dropColumn('roles');
|
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -14,13 +14,13 @@ discard block |
||
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | 16 | if (!Schema::hasColumn('users', 'token')) {
|
| 17 | - Schema::table('users', function (Blueprint $table) {
|
|
| 17 | + Schema::table('users', function(Blueprint $table) {
|
|
| 18 | 18 | $table->string('token', 24)->unique()->after('remember_token');
|
| 19 | 19 | }); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | if (!Schema::hasColumn('users', 'active')) {
|
| 23 | - Schema::table('users', function (Blueprint $table) {
|
|
| 23 | + Schema::table('users', function(Blueprint $table) {
|
|
| 24 | 24 | $table->tinyInteger('active')->default(0)->after('token');
|
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | public function down() |
| 35 | 35 | {
|
| 36 | 36 | if (Schema::hasColumn('users', 'token')) {
|
| 37 | - Schema::table('users', function (Blueprint $table) {
|
|
| 37 | + Schema::table('users', function(Blueprint $table) {
|
|
| 38 | 38 | $table->dropColumn('token');
|
| 39 | 39 | }); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if (Schema::hasColumn('users', 'active')) {
|
| 43 | - Schema::table('users', function (Blueprint $table) {
|
|
| 43 | + Schema::table('users', function(Blueprint $table) {
|
|
| 44 | 44 | $table->dropColumn('active');
|
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | {
|
| 16 | - Schema::create('pages', function (Blueprint $table) {
|
|
| 16 | + Schema::create('pages', function(Blueprint $table) {
|
|
| 17 | 17 | $table->increments('id');
|
| 18 | 18 | $table->integer('template_id');
|
| 19 | 19 | $table->tinyInteger('isHp')->default(0);
|