minor fix: fix default for status of TidbAuthBinding in compatible with various versions (#22288)

This commit is contained in:
NeatGuyCoding
2025-08-01 14:51:16 +08:00
committed by GitHub
parent 05b002a8b7
commit 759ded3e3a
9 changed files with 28 additions and 11 deletions

View File

@@ -0,0 +1,25 @@
"""manual dataset field update
Revision ID: 532b3f888abf
Revises: 8bcc02c9bd07
Create Date: 2025-07-24 14:50:48.779833
"""
from alembic import op
import models as models
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '532b3f888abf'
down_revision = '8bcc02c9bd07'
branch_labels = None
depends_on = None
def upgrade():
op.execute("ALTER TABLE tidb_auth_bindings ALTER COLUMN status SET DEFAULT 'CREATING'::character varying")
def downgrade():
op.execute("ALTER TABLE tidb_auth_bindings ALTER COLUMN status SET DEFAULT 'CREATING'")