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