fix migration file error

This commit is contained in:
xiaomlove
2021-06-09 17:09:16 +08:00
parent c771ff9ef1
commit 36b8e9a3db
7 changed files with 9 additions and 100 deletions
@@ -21,12 +21,13 @@ class CreatePostsTable extends Migration
$table->unsignedMediumInteger('topicid')->default(0);
$table->unsignedMediumInteger('userid')->default(0)->index('userid');
$table->dateTime('added')->nullable()->index('added');
$table->text('body')->nullable()->index('body');
$table->text('body')->nullable();
$table->text('ori_body')->nullable();
$table->unsignedMediumInteger('editedby')->default(0);
$table->dateTime('editdate')->nullable();
$table->index(['topicid', 'id'], 'topicid_id');
});
\Illuminate\Support\Facades\DB::statement('alter table posts add fulltext body(body)');
}
/**