|
|
|
@ -1,8 +1,8 @@
@@ -1,8 +1,8 @@
|
|
|
|
|
"""reset migrations |
|
|
|
|
"""add pcp review |
|
|
|
|
|
|
|
|
|
Revision ID: fa85e732aa96 |
|
|
|
|
Revision ID: d87b14d6a90c |
|
|
|
|
Revises: |
|
|
|
|
Create Date: 2020-07-19 22:51:26.430851 |
|
|
|
|
Create Date: 2020-07-21 21:47:51.061829 |
|
|
|
|
|
|
|
|
|
""" |
|
|
|
|
from alembic import op |
|
|
|
@ -10,7 +10,7 @@ import sqlalchemy as sa
@@ -10,7 +10,7 @@ import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic. |
|
|
|
|
revision = 'fa85e732aa96' |
|
|
|
|
revision = 'd87b14d6a90c' |
|
|
|
|
down_revision = None |
|
|
|
|
branch_labels = None |
|
|
|
|
depends_on = None |
|
|
|
@ -89,6 +89,7 @@ def upgrade():
@@ -89,6 +89,7 @@ def upgrade():
|
|
|
|
|
sa.Column('catching_player_id', sa.Integer(), nullable=False), |
|
|
|
|
sa.Column('caught_player_id', sa.Integer(), nullable=False), |
|
|
|
|
sa.Column('timestamp', sa.DateTime(), server_default=sa.text('(CURRENT_TIMESTAMP)'), nullable=False), |
|
|
|
|
sa.Column('review', sa.Enum('none', 'denied', 'accepted', name='review'), server_default='none', nullable=False), |
|
|
|
|
sa.ForeignKeyConstraint(['catching_player_id'], ['game_player.id'], ), |
|
|
|
|
sa.ForeignKeyConstraint(['caught_player_id'], ['game_player.id'], ), |
|
|
|
|
sa.PrimaryKeyConstraint('id') |