有什么好的方法吗?我目前通过以我想要的顺序的相反顺序列出列来做到这一点:
Schema::table('some_table', function($table){
$table->string('new_col_2')->after('existing_col'); //How to specify that this should come after new_col_1?
$table->string('new_col_1')->after('existing_col');
});
最佳答案
你试过吗:
Schema::table('some_table', function($table){
$table->string('new_col_1')->after('existing_col');
$table->string('new_col_2')->after('new_col_1');
}
https://stackoverflow.com/questions/53671239/