1
0
mirror of https://github.com/flarum/core.git synced 2025-08-14 12:24:33 +02:00

Fix migrations to comply with PSR-2

This commit is contained in:
Franz Liedke
2015-05-19 01:22:09 +02:00
parent dd54803aaf
commit f7e241e410
10 changed files with 256 additions and 256 deletions

View File

@@ -3,31 +3,31 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePermissionsTable extends Migration {
class CreatePermissionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('permissions', function($table)
{
$table->integer('group_id')->unsigned();
$table->string('permission', 100);
$table->primary(['group_id', 'permission']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('permissions');
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('permissions', function ($table) {
$table->integer('group_id')->unsigned();
$table->string('permission', 100);
$table->primary(['group_id', 'permission']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('permissions');
}
}