1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 08:56:38 +02:00

Initial commit

This commit is contained in:
Toby Zerner
2015-07-28 15:35:55 +09:30
commit f6c0f22db0
30 changed files with 810 additions and 0 deletions

View File

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