Modify

Ticket #227 (closed defect: invalid)

Opened 5 years ago

Last modified 3 years ago

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

comment:1 Changed 5 years ago by andrew

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.

comment:2 Changed 4 years ago by andrew

  • Status changed from new to closed
  • Resolution set to invalid
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.