File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 33use Illuminate \Database \Migrations \Migration ;
44use Illuminate \Database \Schema \Blueprint ;
55
6- class CreateTagsTable extends Migration {
6+ class CreateTagsTable extends Migration
7+ {
78 /**
89 * Run the migrations.
910 *
1011 * @return void
1112 */
12- public function up () {
13+ public function up ()
14+ {
1315 Schema::create ('tags ' , function (Blueprint $ table ) {
1416 $ table ->increments ('id ' );
1517 $ table ->string ('name ' );
16- $ table ->integer ('user_id ' )->unsigned ();
18+ $ table ->integer ('user_id ' )->unsigned ()-> nullable () ;
1719 $ table ->integer ('is_special_tag ' )->default ('0 ' );
1820 $ table ->timestamps ();
1921
@@ -26,7 +28,8 @@ public function up() {
2628 *
2729 * @return void
2830 */
29- public function down () {
31+ public function down ()
32+ {
3033 Schema::drop ('tags ' );
3134 }
3235}
You can’t perform that action at this time.
0 commit comments