Components can now be re-ordered, closes #165

This commit is contained in:
James Brooks
2015-01-01 13:37:47 +00:00
parent 925818320c
commit 6ab16f98ab
17 changed files with 35878 additions and 44 deletions
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterTableComponentsAddOrderColumn extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('components', function(Blueprint $table)
{
$table->tinyInteger('order')->default(0)->after('status');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('components', function(Blueprint $table)
{
$table->dropColumn('order');
});
}
}