diff --git a/core/data/alembic/versions/d0f1c7fa9505_mai2_add_prism_support.py b/core/data/alembic/versions/d0f1c7fa9505_mai2_add_prism_support.py new file mode 100644 index 0000000..c879706 --- /dev/null +++ b/core/data/alembic/versions/d0f1c7fa9505_mai2_add_prism_support.py @@ -0,0 +1,28 @@ +"""Mai2 add PRiSM support + +Revision ID: d0f1c7fa9505 +Revises: 1d0014d35220 +Create Date: 2025-04-02 06:37:10.657372 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'd0f1c7fa9505' +down_revision = '1d0014d35220' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('mai2_playlog', sa.Column('extBool2', sa.Boolean(), nullable=True,server_default=sa.text("NULL"))) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('mai2_playlog', 'extBool2') + # ### end Alembic commands ### diff --git a/titles/mai2/schema/score.py b/titles/mai2/schema/score.py index cbe7448..56957b3 100644 --- a/titles/mai2/schema/score.py +++ b/titles/mai2/schema/score.py @@ -147,6 +147,7 @@ playlog = Table( Column("extNum2", Integer), Column("extNum4", Integer), Column("extBool1", Boolean), # new with buddies + Column("extBool2", Boolean), # new with prism Column("trialPlayAchievement", Integer), mysql_charset="utf8mb4", )