mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08: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:
parent
df732bdc71
commit
256955ed28
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user