Fix the parsed_template columns (missing created_at and updated_at)

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2012-04-18 14:02:25 +10:00
parent 8a317678cf
commit e5a0f9196f
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
from sqlalchemy import *
from migrate import *
def upgrade(migrate_engine):
meta = MetaData(bind=migrate_engine)
parsed_template = Table('parsed_template', meta, autoload=True)
Column('created_at', DateTime(timezone=False)).create(parsed_template)
Column('updated_at', DateTime(timezone=False)).create(parsed_template)
def downgrade(migrate_engine):
meta = MetaData(bind=migrate_engine)
parsed_template = Table('parsed_template', meta, autoload=True)
parsed_template.c.created_at.drop()
parsed_template.c.updated_at.drop()

View File

@ -20,7 +20,7 @@ except ImportError:
'revision_id': 'LOCALREVISION',
'revno': 0}
HEAT_VERSION = ['0.0', '2']
HEAT_VERSION = ['0.0', '3']
COUNT, REVISION = HEAT_VERSION
FINAL = False # This becomes true at Release Candidate time