mirror of
https://github.com/flarum/core.git
synced 2025-08-22 16:14:00 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddSubscriptionToUsersDiscussionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
app('db')->getSchemaBuilder()->table('users_discussions', function (Blueprint $table) {
|
||||
$table->enum('subscription', ['follow', 'ignore'])->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
app('db')->getSchemaBuilder()->table('users_discussions', function (Blueprint $table) {
|
||||
$table->dropColumn('subscription');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user