@@ -15,14 +15,14 @@ |
||
15 | 15 | Schema::create('articles', function($table) |
16 | 16 | { |
17 | 17 | $table->increments('id'); |
18 | - $table->string('nickname',50); |
|
19 | - $table->string('scope',50); |
|
20 | - $table->string('lang',10); |
|
18 | + $table->string('nickname', 50); |
|
19 | + $table->string('scope', 50); |
|
20 | + $table->string('lang', 10); |
|
21 | 21 | $table->longtext('content'); |
22 | 22 | $table->boolean('activated')->default(0); |
23 | 23 | $table->integer('user_id')->nullable(); |
24 | 24 | $table->timestamps(); |
25 | - $table->unique(array('nickname','lang','scope')); |
|
25 | + $table->unique(array('nickname', 'lang', 'scope')); |
|
26 | 26 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
27 | 27 | }); |
28 | 28 | } |