Skip to content

Commit

Permalink
Add description to permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Jun 3, 2019
1 parent e0d2ded commit f2fecee
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddDescriptionToAclPermissions extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('acl_permissions', function (Blueprint $table) {
$table->string('description')->nullable()->after('name');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('acl_permissions', function (Blueprint $table) {
$table->dropColumn('description');
});
}
}

0 comments on commit f2fecee

Please sign in to comment.