1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 22:20:21 +02:00

Change engine and make post content nullable

MyISAM doesn’t support transactions which is problematic for testing.
Will have to consider this more carefully when working on FULLTEXT
search, but for now I just wanna test!
This commit is contained in:
Toby Zerner
2015-01-21 12:02:25 +10:30
parent 3be47a3d4f
commit 7f22498e6c
2 changed files with 2 additions and 6 deletions

View File

@@ -14,8 +14,6 @@ class CreateDiscussionsTable extends Migration {
{
Schema::create('discussions', function(Blueprint $table)
{
$table->engine = 'MyISAM';
$table->increments('id');
$table->string('title');
$table->integer('comments_count')->unsigned()->default(0);

View File

@@ -14,8 +14,6 @@ class CreatePostsTable extends Migration {
{
Schema::create('posts', function(Blueprint $table)
{
$table->engine = 'MyISAM';
$table->increments('id');
$table->integer('discussion_id')->unsigned();
$table->integer('number')->unsigned()->nullable();
@@ -23,8 +21,8 @@ class CreatePostsTable extends Migration {
$table->dateTime('time');
$table->integer('user_id')->unsigned()->nullable();
$table->string('type')->nullable();
$table->text('content');
$table->text('content_html');
$table->text('content')->nullable();
$table->text('content_html')->nullable();
$table->dateTime('edit_time')->nullable();
$table->integer('edit_user_id')->unsigned()->nullable();