|
|
@ -21,7 +21,7 @@ def upgrade(): |
|
|
|
op.create_table('game', |
|
|
|
op.create_table('game', |
|
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
|
sa.Column('id', sa.Integer(), nullable=False), |
|
|
|
sa.Column('name', sa.String(length=64), nullable=False), |
|
|
|
sa.Column('name', sa.String(length=64), nullable=False), |
|
|
|
sa.Column('state', sa.Enum('initiated', 'published', 'active', 'interrupted', 'finished', name='gamestate'), server_default='initiated', nullable=False), |
|
|
|
sa.Column('state', sa.Enum('hidden', 'published', 'active', 'interrupted', 'finished', name='gamestate'), server_default='hidden', nullable=False), |
|
|
|
sa.Column('start_time', sa.DateTime(), nullable=True), |
|
|
|
sa.Column('start_time', sa.DateTime(), nullable=True), |
|
|
|
sa.Column('end_time', sa.DateTime(), nullable=True), |
|
|
|
sa.Column('end_time', sa.DateTime(), nullable=True), |
|
|
|
sa.PrimaryKeyConstraint('id') |
|
|
|
sa.PrimaryKeyConstraint('id') |
|
|
|