有没有很好的方法可以做到这一点?目前,我是按照与我想要的顺序相反的顺序列出各列的:
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');
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句