@@ -6,42 +6,42 @@ |
||
6 | 6 | |
7 | 7 | class CreateDashboardTables extends Migration |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the migrations. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function up() |
|
15 | - { |
|
16 | - $this->down(); |
|
9 | + /** |
|
10 | + * Run the migrations. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function up() |
|
15 | + { |
|
16 | + $this->down(); |
|
17 | 17 | |
18 | - Schema::create('dashboards', function (Blueprint $table) { |
|
19 | - $table->increments('id'); |
|
20 | - $table->unsignedInteger('user_id'); |
|
21 | - $table->string('name', 64); |
|
22 | - $table->smallInteger('position')->default(0); |
|
23 | - }); |
|
18 | + Schema::create('dashboards', function (Blueprint $table) { |
|
19 | + $table->increments('id'); |
|
20 | + $table->unsignedInteger('user_id'); |
|
21 | + $table->string('name', 64); |
|
22 | + $table->smallInteger('position')->default(0); |
|
23 | + }); |
|
24 | 24 | |
25 | - Schema::create('dashboard_applets', function (Blueprint $table) { |
|
26 | - $table->increments('id'); |
|
27 | - $table->unsignedInteger('dashboard_id'); |
|
28 | - $table->string('class', 512); |
|
29 | - $table->smallInteger('column')->default(1); |
|
30 | - $table->smallInteger('row')->default(0); |
|
31 | - $table->text('options'); |
|
25 | + Schema::create('dashboard_applets', function (Blueprint $table) { |
|
26 | + $table->increments('id'); |
|
27 | + $table->unsignedInteger('dashboard_id'); |
|
28 | + $table->string('class', 512); |
|
29 | + $table->smallInteger('column')->default(1); |
|
30 | + $table->smallInteger('row')->default(0); |
|
31 | + $table->text('options'); |
|
32 | 32 | |
33 | - $table->foreign('dashboard_id')->references('id')->on('dashboards'); |
|
34 | - }); |
|
35 | - } |
|
33 | + $table->foreign('dashboard_id')->references('id')->on('dashboards'); |
|
34 | + }); |
|
35 | + } |
|
36 | 36 | |
37 | - /** |
|
38 | - * Reverse the migrations. |
|
39 | - * |
|
40 | - * @return void |
|
41 | - */ |
|
42 | - public function down() |
|
43 | - { |
|
44 | - Schema::dropIfExists('dashboard_applets'); |
|
45 | - Schema::dropIfExists('dashboards'); |
|
46 | - } |
|
37 | + /** |
|
38 | + * Reverse the migrations. |
|
39 | + * |
|
40 | + * @return void |
|
41 | + */ |
|
42 | + public function down() |
|
43 | + { |
|
44 | + Schema::dropIfExists('dashboard_applets'); |
|
45 | + Schema::dropIfExists('dashboards'); |
|
46 | + } |
|
47 | 47 | } |
@@ -15,14 +15,14 @@ |
||
15 | 15 | { |
16 | 16 | $this->down(); |
17 | 17 | |
18 | - Schema::create('dashboards', function (Blueprint $table) { |
|
18 | + Schema::create('dashboards', function(Blueprint $table) { |
|
19 | 19 | $table->increments('id'); |
20 | 20 | $table->unsignedInteger('user_id'); |
21 | 21 | $table->string('name', 64); |
22 | 22 | $table->smallInteger('position')->default(0); |
23 | 23 | }); |
24 | 24 | |
25 | - Schema::create('dashboard_applets', function (Blueprint $table) { |
|
25 | + Schema::create('dashboard_applets', function(Blueprint $table) { |
|
26 | 26 | $table->increments('id'); |
27 | 27 | $table->unsignedInteger('dashboard_id'); |
28 | 28 | $table->string('class', 512); |