Modify ↓
Ticket #227 (closed defect: invalid)
Migrating from mysql to postgres, hit some mysql-specific code...
| Reported by: | skylar.saveland@… | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | commands | Version: | 0.6 |
| Keywords: | Cc: |
Description
try:
db.delete_unique('profile_projectexp', ('person', 'project'))
except ValueError:
db.execute('alter table profile_projectexp drop key profile_projectexp_person_id_6fe12f6f;')
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

I don't see how this is a South issue; the code in question looks to be hand-written for that particular migration.
In fact, I'm not sure why there's a try/except clause there, delete_unique should work for both PostgreSQL and MySQL.