Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions web/migrations/versions/018e16dad6aa_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2026, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################

"""
Updated id column type to BIGINT.

Revision ID: 018e16dad6aa
Revises: efbbe5d5862f
Create Date: 2026-01-08 14:37:33.257002

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = '018e16dad6aa'
down_revision = 'efbbe5d5862f'
branch_labels = None
depends_on = None


def upgrade():
with op.batch_alter_table("database") as batch_op:
batch_op.alter_column('id',
existing_type=sa.Integer(),
type_=sa.BigInteger(),
nullable=False)


def downgrade():
# pgAdmin only upgrades, downgrade not implemented.
pass
4 changes: 2 additions & 2 deletions web/pgadmin/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
##########################################################################

SCHEMA_VERSION = 48
SCHEMA_VERSION = 49

##########################################################################
#
Expand Down Expand Up @@ -412,7 +412,7 @@ class Database(db.Model):
Define a Database.
"""
__tablename__ = 'database'
id = db.Column(db.Integer, primary_key=True)
id = db.Column(db.BigInteger, primary_key=True)
schema_res = db.Column(db.String(256), nullable=True)
server = db.Column(
db.Integer,
Expand Down
Loading