snipe-it/database/migrations/2019_06_12_184327_rename_groups_table.php

29 lines
512 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RenameGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::rename('groups', 'permission_groups');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::rename('permission_groups', 'groups');
}
}