mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Initial commit
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user