mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
Update migrations
This commit is contained in:
@@ -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 AddLockedToDiscussions extends Migration
|
class AddLockedToDiscussions extends Migration
|
||||||
{
|
{
|
||||||
@@ -12,7 +12,7 @@ class AddLockedToDiscussions extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('discussions', function (Blueprint $table) {
|
$this->schema->table('discussions', function (Blueprint $table) {
|
||||||
$table->boolean('is_locked')->default(0);
|
$table->boolean('is_locked')->default(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@ class AddLockedToDiscussions extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('discussions', function (Blueprint $table) {
|
$this->schema->table('discussions', function (Blueprint $table) {
|
||||||
$table->dropColumn('is_locked');
|
$table->dropColumn('is_locked');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user