Skip to content

A free open source IT asset/license management system

Fix mistake in the settings table kerfuffle.

Daniel Meltzer52b61c9d497a
diff --git a/database/migrations/2016_05_20_024859_remove_option_keys_from_settings_table.php b/database/migrations/2016_05_20_024859_remove_option_keys_from_settings_table.php
index d89677f345..4a0c1480c6 100644
--- a/database/migrations/2016_05_20_024859_remove_option_keys_from_settings_table.php
+++ b/database/migrations/2016_05_20_024859_remove_option_keys_from_settings_table.php
@@ -14,7 +14,7 @@ class RemoveOptionKeysFromSettingsTable extends Migration
{
Schema::table('settings', function (Blueprint $table) {
//
- if(Schema::hasColumn('option_name', 'settings'))
+ if(Schema::hasColumn('settings', 'option_name'))
$table->dropColumn('option_name');
});
}
diff --git a/database/migrations/2016_05_20_143758_remove_option_value_from_settings_table.php b/database/migrations/2016_05_20_143758_remove_option_value_from_settings_table.php
index 302baaa8cb..2836aaefb6 100644
--- a/database/migrations/2016_05_20_143758_remove_option_value_from_settings_table.php
+++ b/database/migrations/2016_05_20_143758_remove_option_value_from_settings_table.php
@@ -14,7 +14,7 @@ class RemoveOptionValueFromSettingsTable extends Migration
{
Schema::table('settings', function (Blueprint $table) {
//
- if(Schema::hasColumn('option_value', 'settings'))
+ if(Schema::hasColumn('settings', 'option_value'))
$table->dropColumn('option_value');
});
}