Fix for request_events table migration script for MySQL & sqlite

This commit is contained in:
Ramkrishna Chakrabarty
2009-11-30 09:35:21 -05:00
parent 1fcafa5a86
commit 14751d54b5
@@ -73,9 +73,10 @@ def upgrade():
"%s AS create_time," + \
"%s AS update_time," + \
"request.id AS request_id," + \
"request.state AS state " + \
"request.state AS state," + \
"'%s' AS comment " + \
"FROM request;"
cmd = cmd % ( nextval('request_event'), localtimestamp(), localtimestamp() )
cmd = cmd % ( nextval('request_event'), localtimestamp(), localtimestamp(), 'Imported from request table')
db_session.execute( cmd )
# Delete the state column