Skip to content

Commit

Permalink
[#1635] Add email_last_sent migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 28, 2012
1 parent 39cdfde commit cd57dd3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ckan/migration/versions/063_add_email_last_sent_column.py
@@ -0,0 +1,10 @@
from sqlalchemy import *
from migrate import *

def upgrade(migrate_engine):
metadata = MetaData()
metadata.bind = migrate_engine
migrate_engine.execute('''
ALTER TABLE dashboard
ADD COLUMN email_last_sent timestamp without time zone NOT NULL;
''')

0 comments on commit cd57dd3

Please sign in to comment.