mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:11:56 +08:00
Update migrations
This commit is contained in:
parent
28f9366b6a
commit
9a7d1da01f
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Flarum\Migrations\Migration;
|
||||
|
||||
class AddLockedToDiscussions extends Migration
|
||||
{
|
||||
@ -12,7 +12,7 @@ class AddLockedToDiscussions extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('discussions', function (Blueprint $table) {
|
||||
$this->schema->table('discussions', function (Blueprint $table) {
|
||||
$table->boolean('is_locked')->default(0);
|
||||
});
|
||||
}
|
||||
@ -24,7 +24,7 @@ class AddLockedToDiscussions extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('discussions', function (Blueprint $table) {
|
||||
$this->schema->table('discussions', function (Blueprint $table) {
|
||||
$table->dropColumn('is_locked');
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user