Added depreciate flag for assets and licenses

This commit is contained in:
snipe
2013-11-25 11:31:02 -05:00
parent 3ba2880a35
commit 6fee1067bc
2 changed files with 76 additions and 0 deletions
@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
class AddDepreciateToAssets extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('assets', function($table)
{
$table->boolean('depreciate');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('assets', function($table)
{
$table->dropColumn('depreciate');
});
}
}
@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
class AddDepreciateToLicensesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('licenses', function($table)
{
$table->boolean('depreciate');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('licenses', function($table)
{
$table->dropColumn('depreciate');
});
}
}