Add support for the hostaddr connection parameter. This helps us play nicely with Kerberos/SSPI and friends. Fixes #2191

This commit is contained in:
Atul Sharma
2017-06-26 15:48:59 -04:00
committed by Dave Page
parent 3f4781cdcb
commit 15cb9fc35b
7 changed files with 149 additions and 7 deletions

View File

@@ -0,0 +1,35 @@
"""empty message
Revision ID: 3c1e4b6eda55
Revises: 09d53fca90c7
Create Date: 2017-06-13 17:05:30.671859
"""
import base64
import sys
from alembic import op
from pgadmin.model import db, Server
import config
import os
from pgadmin.setup import get_version
# revision identifiers, used by Alembic.
revision = '3c1e4b6eda55'
down_revision = '09d53fca90c7'
branch_labels = None
depends_on = None
def upgrade():
verison = get_version()
db.engine.execute(
'ALTER TABLE server ADD COLUMN hostaddr TEXT(1024)'
)
def downgrade():
pass