mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-09-10 13:16:11 -05:00
Drop broken billing playcount unique constraint
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""drop billing playcount unique constraint
|
||||
|
||||
Revision ID: 63f1fc2e334c
|
||||
Revises: ada3e2d02483
|
||||
Create Date: 2026-07-03 18:01:52.160242
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '63f1fc2e334c'
|
||||
down_revision = 'ada3e2d02483'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.drop_constraint('machine', 'machine_billing_playcount', type_='unique')
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.create_unique_constraint('machine', 'machine_billing_playcount', ['machine'])
|
||||
@@ -142,7 +142,7 @@ billing_playct: Table = Table(
|
||||
"machine",
|
||||
Integer,
|
||||
ForeignKey("machine.id", ondelete="cascade", onupdate="cascade"),
|
||||
nullable=False, unique=True
|
||||
nullable=False
|
||||
),
|
||||
Column("game_id", CHAR(5), nullable=False),
|
||||
Column("year", INTEGER, nullable=False),
|
||||
|
||||
Reference in New Issue
Block a user