We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ee27f commit c910817Copy full SHA for c910817
database/migrations/2018_11_10_161142_create_tags_table.php
@@ -3,17 +3,19 @@
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
-class CreateTagsTable extends Migration {
+class CreateTagsTable extends Migration
7
+{
8
/**
9
* Run the migrations.
10
*
11
* @return void
12
*/
- public function up() {
13
+ public function up()
14
+ {
15
Schema::create('tags', function (Blueprint $table) {
16
$table->increments('id');
17
$table->string('name');
- $table->integer('user_id')->unsigned();
18
+ $table->integer('user_id')->unsigned()->nullable();
19
$table->integer('is_special_tag')->default('0');
20
$table->timestamps();
21
@@ -26,7 +28,8 @@ public function up() {
26
28
27
29
30
- public function down() {
31
+ public function down()
32
33
Schema::drop('tags');
34
}
35
0 commit comments