How can I remove a unique constraint on a field when performing a down migration? |
You could execute some SQL to delete it directly:
PHP Code: public function down() (the unique index will have a name - if you don't know what it is, you can get it with this: SHOW INDEX FROM pages ![]() |
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
RE: How can I remove a unique constraint on a field when performing a down migration? - by TamYen - 03-11-2025, 07:49 PM
|