

def upgrade(migrate_engine):
    meta = MetaData()
    meta.bind = migrate_engine
    cn = Table('compute_nodes', meta, autoload=True)
    shadow_cn = Table('shadow_compute_nodes', meta, autoload=True)
    cn.create_column(Column('ram_allocation_ratio', Float, nullable=True))
    cn.create_column(Column('cpu_allocation_ratio', Float, nullable=True))
    cn.create_column(Column('ram_allocation_ratio', Float))
    shadow_cn.create_column(Column('cpu_allocation_ratio', Float))

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/db/sqlalchemy/migrate_repo/versions/301_add_cpu_and_ram_ratios_for_compute_nodes.py upgrade/VarMisuse@80/114 `shadow_cn`->`cn`