mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 14:08:56 +08:00
Update migrations
This commit is contained in:
parent
ea5dead830
commit
daddce5bd0
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Flarum\Migrations\Migration;
|
||||
|
||||
class AddSuspendedUntilToUsersTable extends Migration
|
||||
{
|
||||
@ -12,7 +12,7 @@ class AddSuspendedUntilToUsersTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
app('db')->getSchemaBuilder()->table('users', function (Blueprint $table) {
|
||||
$this->schema->table('users', function (Blueprint $table) {
|
||||
$table->dateTime('suspended_until')->nullable();
|
||||
});
|
||||
}
|
||||
@ -24,7 +24,7 @@ class AddSuspendedUntilToUsersTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
app('db')->getSchemaBuilder()->table('users', function (Blueprint $table) {
|
||||
$this->schema->table('users', function (Blueprint $table) {
|
||||
$table->dropColumn('suspended_until');
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user