Closes #126, components can have links and tags.

This commit is contained in:
James Brooks
2014-12-30 15:14:55 +00:00
parent a38a89c3e6
commit f4f691ab46
5 changed files with 71 additions and 2 deletions
@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterTableComponentsAddMetaColumns extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('components', function(Blueprint $table)
{
$table->text('tags')->nullable()->default(null)->after('description');
$table->text('link')->nullable()->default(null)->after('description');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('components', function(Blueprint $table)
{
$table->dropColumn('tags');
$table->dropColumn('link');
});
}
}