Revert "Rewritten device groups (including static) (#10295)" (#10340)

This reverts commit cfc51d51f5.
This commit is contained in:
Tony Murray
2019-06-16 21:52:57 -05:00
committed by GitHub
parent cfc51d51f5
commit c2b09b8f80
36 changed files with 1360 additions and 1006 deletions

View File

@@ -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');
});
}
}