Default the component_groups.order value to 0

This commit is contained in:
James Brooks
2015-05-20 08:07:08 +01:00
parent 8e06f6241b
commit a119ed14b2

View File

@@ -25,7 +25,7 @@ class AlterTableComponentGroupsAddOrder extends Migration
public function up()
{
Schema::table('component_groups', function (Blueprint $table) {
$table->integer('order')->after('name');
$table->integer('order')->after('name')->default(0);
$table->index('order');
});
}