Fix the parsed_template columns (missing created_at and updated_at)

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
changes/40/40/1
Angus Salkeld 11 years ago
parent 8a317678cf
commit e5a0f9196f
  1. 18
      heat/db/sqlalchemy/migrate_repo/versions/003_add_missing_cols.py
  2. 2
      heat/version.py

@ -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…
Cancel
Save