mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +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 AddStickyToDiscussions extends Migration
|
class AddStickyToDiscussions extends Migration
|
||||||
{
|
{
|
||||||
@@ -12,7 +12,7 @@ class AddStickyToDiscussions extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('discussions', function (Blueprint $table) {
|
$this->schema->table('discussions', function (Blueprint $table) {
|
||||||
$table->boolean('is_sticky')->default(0);
|
$table->boolean('is_sticky')->default(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@ class AddStickyToDiscussions extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('discussions', function (Blueprint $table) {
|
$this->schema->table('discussions', function (Blueprint $table) {
|
||||||
$table->dropColumn('is_sticky');
|
$table->dropColumn('is_sticky');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user