当前位置: 动力学知识库 > 问答 > 编程问答 >

php - Laravel Eloquent: after() not adding column after a certain column

问题描述:

Following code generates column in the end rather after the certain column. I am on Laravel 5.1

public function up()

{

Schema::table('project', function (Blueprint $table) {

$table->enum('is_it',['yes','no'])->after('goals')->nullable();

});

}

I am using PostgreSQL 9.4

分享给朋友:
您可能感兴趣的文章:
随机阅读: