1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 18:35:56 +02:00

Initial commit

This commit is contained in:
Toby Zerner
2015-08-05 16:08:53 +09:30
commit 8c897ceb72
23 changed files with 620 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSuspendedUntilToUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
app('db')->getSchemaBuilder()->table('users', function (Blueprint $table) {
$table->dateTime('suspended_until')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
app('db')->getSchemaBuilder()->table('users', function (Blueprint $table) {
$table->dropColumn('suspended_until');
});
}
}