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)
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
    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
Ejemplo n.º 4
0
    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