forked from Dniel97/artemis
Merge pull request 'ongeki: fix clearstatus type' (#147) from akanyan/artemis:fix/ongeki/clearstatus into develop
Reviewed-on: Hay1tsme/artemis#147
This commit is contained in:
commit
e6965b568d
@ -0,0 +1,30 @@
|
|||||||
|
"""ongeki: fix clearStatus
|
||||||
|
|
||||||
|
Revision ID: 8ad40a6e7be2
|
||||||
|
Revises: 7dc13e364e53
|
||||||
|
Create Date: 2024-05-29 19:03:30.062157
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
from sqlalchemy.dialects import mysql
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '8ad40a6e7be2'
|
||||||
|
down_revision = '7dc13e364e53'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.alter_column('ongeki_score_best', 'clearStatus',
|
||||||
|
existing_type=mysql.TINYINT(display_width=1),
|
||||||
|
type_=sa.Integer(),
|
||||||
|
existing_nullable=False)
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
op.alter_column('ongeki_score_best', 'clearStatus',
|
||||||
|
existing_type=sa.Integer(),
|
||||||
|
type_=mysql.TINYINT(display_width=1),
|
||||||
|
existing_nullable=False)
|
@ -30,7 +30,7 @@ score_best = Table(
|
|||||||
Column("isFullCombo", Boolean, nullable=False),
|
Column("isFullCombo", Boolean, nullable=False),
|
||||||
Column("isAllBreake", Boolean, nullable=False),
|
Column("isAllBreake", Boolean, nullable=False),
|
||||||
Column("isLock", Boolean, nullable=False),
|
Column("isLock", Boolean, nullable=False),
|
||||||
Column("clearStatus", Boolean, nullable=False),
|
Column("clearStatus", Integer, nullable=False),
|
||||||
Column("isStoryWatched", Boolean, nullable=False),
|
Column("isStoryWatched", Boolean, nullable=False),
|
||||||
Column("platinumScoreMax", Integer),
|
Column("platinumScoreMax", Integer),
|
||||||
UniqueConstraint("user", "musicId", "level", name="ongeki_best_score_uk"),
|
UniqueConstraint("user", "musicId", "level", name="ongeki_best_score_uk"),
|
||||||
|
Loading…
Reference in New Issue
Block a user