mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Fix migrations to comply with PSR-2
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUsersTable extends Migration {
|
||||
class CreateUsersTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
@@ -12,8 +13,8 @@ class CreateUsersTable extends Migration {
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('users', function(Blueprint $table)
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
|
||||
$table->increments('id');
|
||||
$table->string('username', 100)->unique();
|
||||
$table->string('email', 150)->unique();
|
||||
@@ -43,5 +44,4 @@ class CreateUsersTable extends Migration {
|
||||
{
|
||||
Schema::drop('users');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user