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 df732bdc71
commit 256955ed28
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();