mirror of
https://github.com/flarum/core.git
synced 2025-07-22 09:11:19 +02:00
Update migrations
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Flarum\Migrations\Migration;
|
||||
|
||||
class AddStickyToDiscussions extends Migration
|
||||
{
|
||||
@@ -12,7 +12,7 @@ class AddStickyToDiscussions extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('discussions', function (Blueprint $table) {
|
||||
$this->schema->table('discussions', function (Blueprint $table) {
|
||||
$table->boolean('is_sticky')->default(0);
|
||||
});
|
||||
}
|
||||
@@ -24,7 +24,7 @@ class AddStickyToDiscussions extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('discussions', function (Blueprint $table) {
|
||||
$this->schema->table('discussions', function (Blueprint $table) {
|
||||
$table->dropColumn('is_sticky');
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user