mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -06:00
41 lines
1003 B
Python
41 lines
1003 B
Python
|
##########################################################################
|
||
|
#
|
||
|
# pgAdmin 4 - PostgreSQL Tools
|
||
|
#
|
||
|
# Copyright (C) 2013 - 2022, The pgAdmin Development Team
|
||
|
# This software is released under the PostgreSQL Licence
|
||
|
#
|
||
|
##########################################################################
|
||
|
|
||
|
"""Update DB to version 32
|
||
|
|
||
|
Added passexec_cmd and passexec_expiration columns to server configuration.
|
||
|
|
||
|
Revision ID: f79844e926ae
|
||
|
Revises: 1586db67b98e
|
||
|
Create Date: 2022-10-11 11:25:00.000000
|
||
|
|
||
|
"""
|
||
|
from pgadmin.model import db
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'f79844e926ae'
|
||
|
down_revision = '1586db67b98e'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
db.engine.execute("""
|
||
|
ALTER TABLE server ADD COLUMN passexec_cmd TEXT(256) null
|
||
|
""")
|
||
|
db.engine.execute("""
|
||
|
ALTER TABLE server ADD COLUMN passexec_expiration INT null
|
||
|
""")
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# pgAdmin only upgrades, downgrade not implemented.
|
||
|
pass
|