mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed a migration issue for the external database. #4728
This commit is contained in:
parent
ff4a409e27
commit
103cf0eba5
@ -68,11 +68,12 @@ def migrate_connection_params(table_name):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Drop constraint on ssl_mode column.
|
# Drop constraint on ssl_mode column.
|
||||||
try:
|
if table_name == 'server':
|
||||||
with op.batch_alter_table(table_name) as batch_op:
|
try:
|
||||||
batch_op.drop_constraint('ck_ssl_mode')
|
with op.batch_alter_table(table_name) as batch_op:
|
||||||
except Exception:
|
batch_op.drop_constraint('ck_ssl_mode')
|
||||||
pass
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
# Drop unused columns
|
# Drop unused columns
|
||||||
with op.batch_alter_table(table_name) as batch_op:
|
with op.batch_alter_table(table_name) as batch_op:
|
||||||
|
Loading…
Reference in New Issue
Block a user