mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This reverts commit cfc51d51f5
.
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class DeviceGroupsRewrite extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('device_groups', function (Blueprint $table) {
|
||||
$table->string('desc')->nullable()->change();
|
||||
$table->string('type', 16)->default('dynamic')->after('desc');
|
||||
$table->text('rules')->nullable()->after('type');
|
||||
$table->dropColumn('params');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('device_groups', function (Blueprint $table) {
|
||||
$table->string('desc')->change();
|
||||
$table->dropColumn('type');
|
||||
$table->dropColumn('rules');
|
||||
$table->text('params')->nullable()->after('pattern');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user