mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -06:00
6b613fdf36
references the table user_old which is not available. Fixes #7031
37 lines
855 B
Python
37 lines
855 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
##########################################################################
|
|
|
|
"""empty message
|
|
|
|
Revision ID: 3ce25f562f3b
|
|
Revises: 6650c52670c2
|
|
Create Date: 2021-12-01 11:52:09.037749
|
|
|
|
"""
|
|
from pgadmin.model import db
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '3ce25f562f3b'
|
|
down_revision = '6650c52670c2'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
db.engine.execute("create table user_old as select * from user")
|
|
|
|
db.engine.execute("DROP TABLE user")
|
|
|
|
db.engine.execute("ALTER TABLE user_old RENAME TO user")
|
|
|
|
|
|
def downgrade():
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
|
pass
|