|
@ -1,13 +1,13 @@ |
|
|
"""empty message |
|
|
"""empty message |
|
|
|
|
|
|
|
|
Revision ID: 47c81a0d0be7 |
|
|
|
|
|
|
|
|
Revision ID: a6f7dd522b7 |
|
|
Revises: None |
|
|
Revises: None |
|
|
Create Date: 2014-06-22 17:22:24.865474 |
|
|
|
|
|
|
|
|
Create Date: 2014-06-22 22:35:25.691983 |
|
|
|
|
|
|
|
|
""" |
|
|
""" |
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic. |
|
|
# revision identifiers, used by Alembic. |
|
|
revision = '47c81a0d0be7' |
|
|
|
|
|
|
|
|
revision = 'a6f7dd522b7' |
|
|
down_revision = None |
|
|
down_revision = None |
|
|
|
|
|
|
|
|
from alembic import op |
|
|
from alembic import op |
|
@ -16,25 +16,6 @@ import sqlalchemy as sa |
|
|
|
|
|
|
|
|
def upgrade(): |
|
|
def upgrade(): |
|
|
### commands auto generated by Alembic - please adjust! ### |
|
|
### commands auto generated by Alembic - please adjust! ### |
|
|
op.create_table('event', |
|
|
|
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
|
|
|
sa.Column('name', sa.String(length=200), nullable=True), |
|
|
|
|
|
sa.Column('desc', sa.String(length=4096), nullable=True), |
|
|
|
|
|
sa.Column('type', sa.String(length=20), nullable=True), |
|
|
|
|
|
sa.Column('start_time', sa.DateTime(), nullable=True), |
|
|
|
|
|
sa.Column('end_time', sa.DateTime(), nullable=True), |
|
|
|
|
|
sa.Column('points', sa.Integer(), nullable=True), |
|
|
|
|
|
sa.Column('reward_threshold', sa.Integer(), nullable=True), |
|
|
|
|
|
sa.Column('total_subchans', sa.Integer(), nullable=True), |
|
|
|
|
|
sa.Column('channels', sa.Json(), nullable=True), |
|
|
|
|
|
sa.PrimaryKeyConstraint('id') |
|
|
|
|
|
) |
|
|
|
|
|
op.create_table('teamspeak_data', |
|
|
|
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
|
|
|
sa.Column('time', sa.DateTime(), nullable=True), |
|
|
|
|
|
sa.Column('clients', sa.Json(), nullable=True), |
|
|
|
|
|
sa.PrimaryKeyConstraint('id') |
|
|
|
|
|
) |
|
|
|
|
|
op.create_table('user', |
|
|
op.create_table('user', |
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
sa.Column('steam_id', sa.String(length=40), nullable=True), |
|
|
sa.Column('steam_id', sa.String(length=40), nullable=True), |
|
@ -48,6 +29,7 @@ def upgrade(): |
|
|
sa.Column('last_seen', sa.DateTime(), nullable=True), |
|
|
sa.Column('last_seen', sa.DateTime(), nullable=True), |
|
|
sa.Column('twitch', sa.String(length=60), nullable=True), |
|
|
sa.Column('twitch', sa.String(length=60), nullable=True), |
|
|
sa.Column('random_heroes', sa.Json(), nullable=True), |
|
|
sa.Column('random_heroes', sa.Json(), nullable=True), |
|
|
|
|
|
sa.Column('az_completions', sa.Integer(), nullable=True), |
|
|
sa.Column('public', sa.Boolean(), nullable=True), |
|
|
sa.Column('public', sa.Boolean(), nullable=True), |
|
|
sa.Column('logo', sa.Boolean(), nullable=True), |
|
|
sa.Column('logo', sa.Boolean(), nullable=True), |
|
|
sa.Column('points_from_events', sa.Integer(), nullable=True), |
|
|
sa.Column('points_from_events', sa.Integer(), nullable=True), |
|
@ -62,12 +44,31 @@ def upgrade(): |
|
|
sa.UniqueConstraint('steam_id'), |
|
|
sa.UniqueConstraint('steam_id'), |
|
|
sa.UniqueConstraint('teamspeak_id') |
|
|
sa.UniqueConstraint('teamspeak_id') |
|
|
) |
|
|
) |
|
|
|
|
|
op.create_table('teamspeak_data', |
|
|
|
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
|
|
|
sa.Column('time', sa.DateTime(), nullable=True), |
|
|
|
|
|
sa.Column('clients', sa.Json(), nullable=True), |
|
|
|
|
|
sa.PrimaryKeyConstraint('id') |
|
|
|
|
|
) |
|
|
|
|
|
op.create_table('event', |
|
|
|
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
|
|
|
sa.Column('name', sa.String(length=200), nullable=True), |
|
|
|
|
|
sa.Column('desc', sa.String(length=4096), nullable=True), |
|
|
|
|
|
sa.Column('type', sa.String(length=20), nullable=True), |
|
|
|
|
|
sa.Column('start_time', sa.DateTime(), nullable=True), |
|
|
|
|
|
sa.Column('end_time', sa.DateTime(), nullable=True), |
|
|
|
|
|
sa.Column('points', sa.Integer(), nullable=True), |
|
|
|
|
|
sa.Column('reward_threshold', sa.Integer(), nullable=True), |
|
|
|
|
|
sa.Column('total_subchans', sa.Integer(), nullable=True), |
|
|
|
|
|
sa.Column('channels', sa.Json(), nullable=True), |
|
|
|
|
|
sa.PrimaryKeyConstraint('id') |
|
|
|
|
|
) |
|
|
### end Alembic commands ### |
|
|
### end Alembic commands ### |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade(): |
|
|
def downgrade(): |
|
|
### commands auto generated by Alembic - please adjust! ### |
|
|
### commands auto generated by Alembic - please adjust! ### |
|
|
op.drop_table('user') |
|
|
|
|
|
op.drop_table('teamspeak_data') |
|
|
|
|
|
op.drop_table('event') |
|
|
op.drop_table('event') |
|
|
|
|
|
op.drop_table('teamspeak_data') |
|
|
|
|
|
op.drop_table('user') |
|
|
### end Alembic commands ### |
|
|
### end Alembic commands ### |