allanolivei
5 years ago
10605
16
Laravel

how change the column of a table of enum type?

Posted 5 years ago by allanolivei

how change the column of a table of enum type? First i create the enum: $table->enum('ref', ['single', 'monthly', 'biannual', 'amount', 'other']);

I need add new values, i tried this but it did not work: $table->enum('ref', ['single', 'monthly', 'biannual', 'amount', 'other'])->change();

how solve it?

Obs.: my database is psql.

Please sign in or create an account to participate in this conversation.