Skip to content
Snippets Groups Projects
Commit e12d3c81 authored by Vermaat's avatar Vermaat
Browse files

Fix for migration 001 (set default values)

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@381 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent daf079e9
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ def migrate(): ...@@ -36,6 +36,7 @@ def migrate():
ALTER TABLE GBInfo ALTER TABLE GBInfo
ADD COLUMN created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, ADD COLUMN created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
ADD INDEX created (created);""") ADD INDEX created (created);""")
cursor.execute('UPDATE GBInfo SET created = CURRENT_TIMESTAMP;')
connection.commit() connection.commit()
connection.close() connection.close()
migration.info('Added column mutalyzer.GBInfo.created') migration.info('Added column mutalyzer.GBInfo.created')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment