mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Merge branch 'v3' of github.com:snipe/snipe-it into v3
This commit is contained in:
commit
78fc6dec3c
|
@ -14,8 +14,8 @@ class RemoveOptionKeysFromSettingsTable extends Migration
|
|||
{
|
||||
Schema::table('settings', function (Blueprint $table) {
|
||||
//
|
||||
$table->dropColumn('option_name');
|
||||
$table->dropColumn('option_value');
|
||||
if(Schema::hasColumn('option_name', 'settings'))
|
||||
$table->dropColumn('option_name');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@ class RemoveOptionKeysFromSettingsTable extends Migration
|
|||
{
|
||||
Schema::table('Settings', function (Blueprint $table) {
|
||||
//
|
||||
$table->string('option_name')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class RemoveOptionValueFromSettingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('settings', function (Blueprint $table) {
|
||||
//
|
||||
if(Schema::hasColumn('option_value', 'settings'))
|
||||
$table->dropColumn('option_value');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::table('settings', function (Blueprint $table) {
|
||||
$table->string('option_value')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue