Fix the parsed_template columns (missing created_at and updated_at)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
8a317678cf
commit
e5a0f9196f
@ -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()
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user