mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix constraint on servers table in SQLite to allow ports < 1024. Fixes #3307
This commit is contained in:
committed by
Dave Page
parent
2860e82c63
commit
20ea8a69f5
@@ -29,7 +29,7 @@ from flask_sqlalchemy import SQLAlchemy
|
||||
#
|
||||
##########################################################################
|
||||
|
||||
SCHEMA_VERSION = 15
|
||||
SCHEMA_VERSION = 16
|
||||
|
||||
##########################################################################
|
||||
#
|
||||
@@ -111,7 +111,7 @@ class Server(db.Model):
|
||||
hostaddr = db.Column(db.String(128), nullable=True)
|
||||
port = db.Column(
|
||||
db.Integer(),
|
||||
db.CheckConstraint('port >= 1024 AND port <= 65534'),
|
||||
db.CheckConstraint('port >= 1 AND port <= 65534'),
|
||||
nullable=False)
|
||||
maintenance_db = db.Column(db.String(64), nullable=True)
|
||||
username = db.Column(db.String(64), nullable=False)
|
||||
|
||||
Reference in New Issue
Block a user