Use the local model module instead of spline.model.
[zzz-spline-gts.git] / migration / versions / 001_Create_a_permanent_deposits_table.py
1 from sqlalchemy import *
2 from migrate import *
3
4 from sqlalchemy.ext.declarative import declarative_base
5 TableBase = declarative_base(bind=migrate_engine)
6
7
8 class GTSPokemon(TableBase):
9 __tablename__ = 'gts_pokemon'
10 id = Column(Integer, primary_key=True, autoincrement=True)
11 pid = Column(Integer)
12 pokemon_blob = Column(Binary(292), nullable=False)
13
14
15 def upgrade():
16 GTSPokemon.__table__.create()
17
18 def downgrade():
19 GTSPokemon.__table__.drop()