def upgrade(migrate_engine): # Upgrade operations go here. Don't create your own engine; bind # migrate_engine to your metadata meta = MetaData(bind = migrate_engine) info = Table('info', meta, autoload = True) sublime_path = Column(String(200)) sublime_path.name = 'sublime_path' sublime_path.create(info)
def test_incomplete_key(self): c = Column(Integer) assert c.name is None assert c.key is None c.name = 'named' t = Table('t', MetaData(), c) assert c.name == 'named' assert c.name == c.key
def test_incomplete_key(self): c = Column(Integer) assert c.name is None assert c.key is None c.name = "named" t = Table("t", MetaData(), c) assert c.name == "named" assert c.name == c.key