Remove user_user table

Since there is currently no core code that facilitates use of this table,
we are removing it for now. It can be re-added in a subsequent PR.
This commit is contained in:
Toby Zerner 2018-08-24 15:15:40 +09:30
parent ccb1321dca
commit 8b2781829f

View File

@ -1,24 +0,0 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Flarum\Database\Migration;
use Illuminate\Database\Schema\Blueprint;
return Migration::createTable(
'user_user',
function (Blueprint $table) {
$table->integer('user_id')->unsigned();
$table->integer('other_user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('posts')->onDelete('cascade');
$table->foreign('other_user_id')->references('id')->on('users')->onDelete('cascade');
}
);