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