mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -06:00
505a3ac960
2) Fixed code smell 'Add a nested comment explaining why this method is empty, or complete the implementation'.
48 lines
1.0 KiB
Python
48 lines
1.0 KiB
Python
|
|
"""empty message
|
|
|
|
Revision ID: ef590e979b0d
|
|
Revises: d85a62333272
|
|
Create Date: 2017-08-23 18:37:14.836988
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from pgadmin.model import db
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'ef590e979b0d'
|
|
down_revision = 'd85a62333272'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
db.engine.execute(
|
|
'ALTER TABLE server ADD COLUMN passfile TEXT'
|
|
)
|
|
db.engine.execute(
|
|
'ALTER TABLE server ADD COLUMN sslcert TEXT'
|
|
)
|
|
db.engine.execute(
|
|
'ALTER TABLE server ADD COLUMN sslkey TEXT'
|
|
)
|
|
db.engine.execute(
|
|
'ALTER TABLE server ADD COLUMN sslrootcert TEXT'
|
|
)
|
|
db.engine.execute(
|
|
'ALTER TABLE server ADD COLUMN sslcrl TEXT'
|
|
)
|
|
db.engine.execute(
|
|
'ALTER TABLE server ADD COLUMN sslcompression '
|
|
'INTEGER default 0'
|
|
)
|
|
db.engine.execute(
|
|
'UPDATE server SET sslcompression=0'
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
|
pass
|