add prism+ playlog support

This commit is contained in:
2025-04-02 12:42:40 +08:00
parent 3b7a577ea2
commit d598c8fba0
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
"""Mai2 add PRiSM+ playlog support
Revision ID: bdf710616ba4
Revises: 16f34bf7b968
Create Date: 2025-04-02 12:42:08.981516
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bdf710616ba4'
down_revision = '16f34bf7b968'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('mai2_playlog', sa.Column('extBool3', 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', 'extBool3')
# ### end Alembic commands ###

View File

@ -149,6 +149,7 @@ playlog = Table(
Column("extNum4", Integer),
Column("extBool1", Boolean), # new with buddies
Column("extBool2", Boolean), # new with prism
Column("extBool3", Boolean), # new with prism+
Column("trialPlayAchievement", Integer),
mysql_charset="utf8mb4",
)