【发布时间】:2020-02-21 13:17:42
【问题描述】:
//迁移此文件时出现上述错误
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class SubjectOrderForExam extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('subjectOrderingForExam', function(Blueprint $table)
{
$table->integer('id', true);
$table->integer('subjectId');
$table->integer('classId');
$table->integer('sectionId');
$table->string('subjectName', 255);
$table->integer('orderingNo');
$table->enum('isDelete', ['0','1'])->default('0');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('subjectOrderingForExam');
}
}
【问题讨论】:
-
您的代码与错误无关。你能把你的错误堆栈放在这里吗?
-
@KrisRoofe 原谅我吗?
标签: php laravel-4 command migration laravel-artisan