Remove the max length of 255 from password exec command in server configuration dialog. #6877
parent
96fccd28a9
commit
695c008245
|
@ -0,0 +1,39 @@
|
|||
##########################################################################
|
||||
#
|
||||
# pgAdmin 4 - PostgreSQL Tools
|
||||
#
|
||||
# Copyright (C) 2013 - 2023, 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
|
|
@ -335,7 +335,7 @@ export default class ServerSchema extends BaseUISchema {
|
|||
},
|
||||
{
|
||||
id: 'passexec_cmd', label: gettext('Password exec command'), type: 'text',
|
||||
group: gettext('Advanced'),
|
||||
group: gettext('Advanced'), controlProps: {maxLength: null},
|
||||
mode: ['properties', 'edit', 'create'],
|
||||
disabled: pgAdmin.server_mode == 'True',
|
||||
},
|
||||
|
|
|
@ -33,7 +33,7 @@ import config
|
|||
#
|
||||
##########################################################################
|
||||
|
||||
SCHEMA_VERSION = 37
|
||||
SCHEMA_VERSION = 38
|
||||
|
||||
##########################################################################
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue