Upgrade 0.11-0.12 fails with PostgreSQL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Griffith |
Fix Committed
|
Medium
|
Michael |
Bug Description
Hi,
Upgrading from Ubuntu Maverick's 0.11-1
to griffith_
I get an error when the database is attempted to be upgraded.
It seems that the raw SQL used is understood by MySQL/MSSQL, but not by PostgreSQL (which I'm using).
dbupgrade.py:270
===================
queries = {'created': 'ALTER TABLE movies ADD created DATETIME;',
===================
"DATETIME" needs to say "TIMESTAMP" for PostgreSQL
I see self.session.
This may be a good time :-) dialect name will be 'postgres'...
As it is a one-off upgrade I just edited the file for the first run and all worked well.
Hth
Cheers,
Danny
Fixed in rev. 1511.
Do you have a chance to look at the fix? I don't have a PostgreSQL installation to check if it works.