mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Set table engine to MyISAM explicitly (for fulltext support)
This commit is contained in:
parent
2a515a61ef
commit
ba1590f253
|
@ -2,7 +2,6 @@
|
|||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use DB;
|
||||
|
||||
class CreatePostsTable extends Migration
|
||||
{
|
||||
|
@ -31,6 +30,8 @@ class CreatePostsTable extends Migration
|
|||
$table->integer('hide_user_id')->unsigned()->nullable();
|
||||
|
||||
$table->unique(['discussion_id', 'number']);
|
||||
|
||||
$table->engine = 'MyISAM';
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE posts ADD FULLTEXT content (content)');
|
||||
|
|
Loading…
Reference in New Issue
Block a user