1
0
mirror of https://github.com/flarum/core.git synced 2025-02-23 10:46:29 +01:00
php-flarum/migrations/2015_02_24_000000_create_permissions_table.php

35 lines
576 B
PHP
Raw Normal View History

2014-12-20 16:56:46 +10:30
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePermissionsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('permissions', function($table)
{
$table->string('grantee', 100);
$table->string('entity', 100);
$table->string('permission', 100);
2014-12-20 16:56:46 +10:30
$table->primary(['grantee', 'entity', 'permission']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('permissions');
}
}