public function up()
{
Schema::table('news', function (Blueprint $table) {
//
$table->increments('id');
$table->string('title');
$table->text('content');
$table->string('post_image');
$table->string('tags_id');
$table->integer('cate_id');
$table->integer('praise_num');
$table->integer('read_num');
$table->integer('like_num');
$table->integer('collect_num');
$table->tinyInteger('is_host');
$table->tinyInteger('is_recomemt');
$table->boolean('status');
$table->tinyInteger('weike_type');
$table->tinyInteger('sort');
$table->tinyInteger('is_new');
$table->tinyInteger('author_id');
$table->timestamp('create_time');
$table->timestamp('update_time');
$table->foreign('tags_id')->references('id')->on('tags')->onDelete('cascade');
$table->foreign('cate_id')->references('id')->on('category')->onDelete('cascade');
});
}
这一坨代码
Base table or view not found: 1146 Table 'weike.news' doesn't exist
laravel 5.4