Merge pull request #2057 from dmeltzer/fix-settings-table-for-sqlite

Fix Settings Table for Sqlite
This commit is contained in:
snipe 2016-05-19 20:27:56 -07:00
commit 2c7b345ad2
2 changed files with 33 additions and 2 deletions

View file

@ -178,8 +178,6 @@ class SettingsController extends Controller
$settings->brand = 1;
$settings->default_currency = 'USD';
$settings->user_id = 1;
$settings->option_name = '135';
$settings->option_value = '1356';
if ((!$user->isValid('initial')) && (!$settings->isValid('initial'))) {
return redirect()->back()->withInput()->withErrors($user->getErrors())->withErrors($settings->getErrors());

View file

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RemoveOptionKeysFromSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('settings', function (Blueprint $table) {
//
$table->dropColumn('option_name');
$table->dropColumn('option_value');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('Settings', function (Blueprint $table) {
//
});
}
}