1) Fixed an issue where Query history is not getting loaded with an external database. #5781

2) Change the datatype of the value column of the setting table to text instead of a string. #5746
3) Fixed an issue where the key 'passfile' is not found. #4728
This commit is contained in:
Akshay Joshi
2023-01-30 15:38:36 +05:30
parent fd1c26408b
commit ea3dffe78d
5 changed files with 15 additions and 7 deletions

View File

@@ -67,10 +67,15 @@ def migrate_connection_params(table_name):
.values(connection_params=connection_params)
)
# Drop constraint on ssl_mode column.
try:
with op.batch_alter_table(table_name) as batch_op:
batch_op.drop_constraint('ck_ssl_mode')
except Exception:
pass
# Drop unused columns
with op.batch_alter_table(table_name) as batch_op:
if table_name == 'server':
batch_op.drop_constraint('ck_ssl_mode')
batch_op.drop_column('ssl_mode')
batch_op.drop_column('sslcert')
batch_op.drop_column('sslkey')
@@ -90,8 +95,8 @@ def upgrade():
with op.batch_alter_table("setting") as batch_op:
batch_op.alter_column('value',
existing_type=sa.String(length=1024),
type_=sa.String(length=2048),
existing_nullable=False)
type_=sa.Text(),
postgresql_using='value::text')
def downgrade():