我对 Laravel 还很陌生。我创建了一个名为:create_notes_table 的迁移文件,当运行命令 php artisan migrate 时,会弹出此错误消息。
我的 create_notes_table 文件内容
class CreateNotesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notes', function (Blueprint $table) {
$table->increments('id');
$table->number('card_id');
$table->body('string');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notes');
}
}
Run Code Online (Sandbox Code Playgroud)