1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 02:17:37 +02:00

Initial commit

This commit is contained in:
Toby Zerner
2015-05-07 22:26:02 +09:30
commit 3787cc413e
22 changed files with 624 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddStickyToDiscussions extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('discussions', function (Blueprint $table) {
$table->boolean('is_sticky')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('discussions', function (Blueprint $table) {
$table->dropColumn('is_sticky');
});
}
}