@@ -5,35 +5,35 @@ |
||
5 | 5 | |
6 | 6 | class CreateSirgrimorumCmsArticles extends Migration { |
7 | 7 | |
8 | - /** |
|
9 | - * Run the migrations. |
|
10 | - * |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function up() |
|
14 | - { |
|
15 | - Schema::create('articles', function($table) |
|
16 | - { |
|
17 | - $table->increments('id'); |
|
18 | - $table->string('nickname',50); |
|
19 | - $table->string('scope',50); |
|
20 | - $table->string('lang',10); |
|
21 | - $table->longtext('content'); |
|
22 | - $table->boolean('activated')->default(0); |
|
23 | - $table->integer('user_id')->nullable(); |
|
24 | - $table->timestamps(); |
|
25 | - $table->unique(array('nickname','lang','scope')); |
|
26 | - }); |
|
27 | - } |
|
8 | + /** |
|
9 | + * Run the migrations. |
|
10 | + * |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function up() |
|
14 | + { |
|
15 | + Schema::create('articles', function($table) |
|
16 | + { |
|
17 | + $table->increments('id'); |
|
18 | + $table->string('nickname',50); |
|
19 | + $table->string('scope',50); |
|
20 | + $table->string('lang',10); |
|
21 | + $table->longtext('content'); |
|
22 | + $table->boolean('activated')->default(0); |
|
23 | + $table->integer('user_id')->nullable(); |
|
24 | + $table->timestamps(); |
|
25 | + $table->unique(array('nickname','lang','scope')); |
|
26 | + }); |
|
27 | + } |
|
28 | 28 | |
29 | - /** |
|
30 | - * Reverse the migrations. |
|
31 | - * |
|
32 | - * @return void |
|
33 | - */ |
|
34 | - public function down() |
|
35 | - { |
|
36 | - Schema::drop('articles'); |
|
37 | - } |
|
29 | + /** |
|
30 | + * Reverse the migrations. |
|
31 | + * |
|
32 | + * @return void |
|
33 | + */ |
|
34 | + public function down() |
|
35 | + { |
|
36 | + Schema::drop('articles'); |
|
37 | + } |
|
38 | 38 | |
39 | 39 | } |