File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed
Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 1+
2+ """
3+ Updated id column type to BIGINT.
4+
5+ Revision ID: 018e16dad6aa
6+ Revises: efbbe5d5862f
7+ Create Date: 2026-01-08 14:37:33.257002
8+
9+ """
10+ import sqlalchemy as sa
11+ from alembic import op
12+
13+ # revision identifiers, used by Alembic.
14+ revision = '018e16dad6aa'
15+ down_revision = 'efbbe5d5862f'
16+ branch_labels = None
17+ depends_on = None
18+
19+
20+ def upgrade ():
21+ with op .batch_alter_table ("database" ) as batch_op :
22+ batch_op .alter_column ('id' ,
23+ existing_type = sa .Integer (),
24+ type_ = sa .BigInteger (),
25+ nullable = False )
26+
27+
28+ def downgrade ():
29+ # pgAdmin only upgrades, downgrade not implemented.
30+ pass
Original file line number Diff line number Diff line change 3333#
3434##########################################################################
3535
36- SCHEMA_VERSION = 48
36+ SCHEMA_VERSION = 49
3737
3838##########################################################################
3939#
@@ -412,10 +412,10 @@ class Database(db.Model):
412412 Define a Database.
413413 """
414414 __tablename__ = 'database'
415- id = db .Column (db .Integer , primary_key = True )
415+ id = db .Column (db .BigInteger , primary_key = True )
416416 schema_res = db .Column (db .String (256 ), nullable = True )
417417 server = db .Column (
418- db .Integer ,
418+ db .BigInteger ,
419419 db .ForeignKey (SERVER_ID ),
420420 nullable = False ,
421421 primary_key = True
You can’t perform that action at this time.
0 commit comments