How can I remove a unique constraint on a field when performing a down migration? |
Copy-pasted from https://stackoverflow.com/questions/6503...-migration, feel free to answer the question there too to win a few points.
I have to add a unique constraint to a field after the table was created. I therefore set up a migration file with this in the up() method: Code: $fields = [ Code: $fields = [ When calling Code: php spark migrate:rollback What should I put in down() instead? |
Messages In This Thread |
How can I remove a unique constraint on a field when performing a down migration? - by SteeveDroz - 12-02-2020, 02:48 AM
RE: How can I remove a unique constraint on a field when performing a down migration? - by InsiteFX - 12-02-2020, 10:58 AM
RE: How can I remove a unique constraint on a field when performing a down migration? - by daveontheciforum - 12-12-2020, 10:40 AM
|