Skip to content

Commit

Permalink
fixed migration for tag order
Browse files Browse the repository at this point in the history
  • Loading branch information
HUET Benjamin committed Apr 15, 2017
1 parent 94ebc01 commit 620b934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Http/Controllers/TagController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function store(Request $request)
'text_color' => [
'required',
'regex:^#(?:[0-9a-fA-F]{3}){1,2}$^'
]
],
'order' => 'required'
]);

$tag = new Tag($request->all());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AlterCalendarTagsForOrder extends Migration
public function up()
{
Schema::table('calendar_tags', function (Blueprint $table) {
$table->string('order');
$table->string('order')->nullable()->default('0');
});
}

Expand Down

0 comments on commit 620b934

Please sign in to comment.