OpenStack Orchestration (Heat)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
heat/heat/db/sqlalchemy/migrate_repo/versions/003_add_missing_cols.py

18 lines
561 B

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()