2022-10-20 05:48:41 -05:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2024-12-31 23:56:42 -06:00
|
|
|
# Copyright (C) 2013 - 2025, The pgAdmin Development Team
|
2022-10-20 05:48:41 -05:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
2018-05-04 05:27:27 -05:00
|
|
|
"""Added columns for SSH tunneling
|
|
|
|
|
|
|
|
Revision ID: a68b374fe373
|
|
|
|
Revises: 50aad68f99c2
|
|
|
|
Create Date: 2018-04-05 13:59:57.588355
|
|
|
|
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = 'a68b374fe373'
|
|
|
|
down_revision = '50aad68f99c2'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2022-10-20 05:48:41 -05:00
|
|
|
op.add_column('server', sa.Column('use_ssh_tunnel', sa.Integer(),
|
|
|
|
server_default='0'))
|
|
|
|
op.add_column('server', sa.Column('tunnel_host', sa.String()))
|
|
|
|
op.add_column('server', sa.Column('tunnel_port', sa.String()))
|
|
|
|
op.add_column('server', sa.Column('tunnel_username', sa.String()))
|
|
|
|
op.add_column('server', sa.Column('tunnel_authentication', sa.Integer(),
|
|
|
|
server_default='0'))
|
|
|
|
op.add_column('server', sa.Column('tunnel_identity_file', sa.String()))
|
2018-05-04 05:27:27 -05:00
|
|
|
|
2020-07-24 01:16:30 -05:00
|
|
|
|
2018-05-04 05:27:27 -05:00
|
|
|
def downgrade():
|
2020-07-24 01:16:30 -05:00
|
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
2018-05-04 05:27:27 -05:00
|
|
|
pass
|