pgadmin4/web/migrations/versions/44926ac97232_.py
2024-01-01 14:13:48 +05:30

40 lines
1.0 KiB
Python

##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2024, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
"""Update DB to version 38
Removed max length from passexec_cmd column of server configuration.
Revision ID: 44926ac97232
Revises: 44b9ce549393
Create Date: 2023-11-03 19:56:51.277160
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '44926ac97232'
down_revision = '44b9ce549393'
branch_labels = None
depends_on = None
def upgrade():
with op.batch_alter_table("server") as batch_op:
batch_op.alter_column('passexec_cmd',
existing_type=sa.String(length=256),
type_=sa.String())
# ### end Alembic commands ###
def downgrade():
# pgAdmin only upgrades, downgrade not implemented.
pass