Answers for "laravel migration change column order"

PHP
0

laravel migration change column order

public function up()
{

    DB::statement("ALTER TABLE example MODIFY COLUMN foo DATE AFTER bar");

}

public function down()
{

    DB::statement("ALTER TABLE example MODIFY COLUMN foo DATE AFTER bar");

}
Posted by: Guest on December-16-2020

Code answers related to "laravel migration change column order"

Browse Popular Code Answers by Language