mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #2077 from dmeltzer/fix-settings-table-for-sqlite
Fix (for real this time?) the settings table option_name/option_value
This commit is contained in:
commit
d6dc57286f
|
@ -14,7 +14,7 @@ class RemoveOptionKeysFromSettingsTable extends Migration
|
||||||
{
|
{
|
||||||
Schema::table('settings', function (Blueprint $table) {
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
//
|
//
|
||||||
if(Schema::hasColumn('option_name', 'settings'))
|
if(Schema::hasColumn('settings', 'option_name'))
|
||||||
$table->dropColumn('option_name');
|
$table->dropColumn('option_name');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ class RemoveOptionValueFromSettingsTable extends Migration
|
||||||
{
|
{
|
||||||
Schema::table('settings', function (Blueprint $table) {
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
//
|
//
|
||||||
if(Schema::hasColumn('option_value', 'settings'))
|
if(Schema::hasColumn('settings', 'option_value'))
|
||||||
$table->dropColumn('option_value');
|
$table->dropColumn('option_value');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue