mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Enhanced pgAdmin 4 with support for Workspace layouts. #7708
This commit is contained in:
39
web/migrations/versions/255e2842e4d7_.py
Normal file
39
web/migrations/versions/255e2842e4d7_.py
Normal file
@@ -0,0 +1,39 @@
|
||||
##########################################################################
|
||||
#
|
||||
# pgAdmin 4 - PostgreSQL Tools
|
||||
#
|
||||
# Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
||||
# This software is released under the PostgreSQL Licence
|
||||
#
|
||||
##########################################################################
|
||||
|
||||
"""
|
||||
|
||||
Revision ID: 255e2842e4d7
|
||||
Revises: f28be870d5ec
|
||||
Create Date: 2024-12-05 13:14:53.602974
|
||||
|
||||
"""
|
||||
from alembic import op, context
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '255e2842e4d7'
|
||||
down_revision = 'f28be870d5ec'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
with (op.batch_alter_table("server",
|
||||
table_kwargs={'sqlite_autoincrement': True}) as batch_op):
|
||||
if context.get_impl().bind.dialect.name == "sqlite":
|
||||
batch_op.alter_column('id', autoincrement=True)
|
||||
batch_op.add_column(sa.Column('is_adhoc', sa.Integer(),
|
||||
server_default='0'))
|
||||
|
||||
|
||||
def downgrade():
|
||||
# pgAdmin only upgrades, downgrade not implemented.
|
||||
pass
|
||||
Reference in New Issue
Block a user