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
This is not possible when you are working with PostgreSQL. This function is only supported by MySQL.
In Column Modifiers Documentation, the method after is then only highlighted for MySQL and you can also see a discussion about it here: #14298.
I hope this clarifies your doubt, regards!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With