Changed settings table structure

Need to refactor this later
This commit is contained in:
snipe
2013-11-22 18:04:16 -05:00
parent e9bd8397d8
commit 37e1ae7f5a
@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
class EditsToSettingsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('settings', function($table)
{
$table->dropColumn('option_label');
$table->dropColumn('option_name');
$table->dropColumn('option_value');
$table->integer('per_page')->default(20);
$table->string('site_name','100')->default("Snipe IT Asset Management");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}