Skip to content

Commit

Permalink
DB migration for #112
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Dec 10, 2013
1 parent 8ac394b commit da9f28f
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Migrations\Migration;

class AddEolOnModelsTable extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('models', function($table)
{
$table->integer('eol')->nullable()->default(NULL);

});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('models', function($table)
{
$table->dropColumn('old');
});
}

}

0 comments on commit da9f28f

Please sign in to comment.