我在Laravel 4中运行了几次迁移.我使用PHP artisan migrate:rollback和PHP artisan migrate命令来填充表格.有趣的是,我的一次迁移已停止工作(无法回滚).所有其他人都工作正常.据我所知,我没有改变任何东西.
有问题的迁移命名为:2013_06_19_050252_create_artists_table.PHP
它看起来像这样:
<?PHP use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateArtistsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('artists',function(Blueprint $table) { $table->increments('id'); $table->string('url_tag')->unique(); $table->string('username'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('artists'); } }
我不知道为什么这不起作用.什么想法可能会发生什么?