From 599bd52047d62b5c06a576d5b235fb36c4c941d1 Mon Sep 17 00:00:00 2001 From: Burathar Date: Tue, 21 Jul 2020 22:42:20 +0200 Subject: [PATCH] update database to 1.4.3 --- ...eset_migrations.py => d87b14d6a90c_add_pcp_review.py} | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename migrations/versions/{fa85e732aa96_reset_migrations.py => d87b14d6a90c_add_pcp_review.py} (95%) diff --git a/migrations/versions/fa85e732aa96_reset_migrations.py b/migrations/versions/d87b14d6a90c_add_pcp_review.py similarity index 95% rename from migrations/versions/fa85e732aa96_reset_migrations.py rename to migrations/versions/d87b14d6a90c_add_pcp_review.py index 3558f57..772e9a6 100644 --- a/migrations/versions/fa85e732aa96_reset_migrations.py +++ b/migrations/versions/d87b14d6a90c_add_pcp_review.py @@ -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 # revision identifiers, used by Alembic. -revision = 'fa85e732aa96' +revision = 'd87b14d6a90c' down_revision = None branch_labels = None depends_on = None @@ -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')