mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -06:00
33 lines
610 B
Python
33 lines
610 B
Python
|
|
||
|
"""empty message
|
||
|
|
||
|
Revision ID: 84700139beb0
|
||
|
Revises: d39482714a2e
|
||
|
Create Date: 2020-06-24 15:53:56.489518
|
||
|
|
||
|
"""
|
||
|
from pgadmin.model import db
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '84700139beb0'
|
||
|
down_revision = 'd39482714a2e'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
db.engine.execute("""
|
||
|
CREATE TABLE "database" (
|
||
|
"id" INTEGER NOT NULL,
|
||
|
"schema_res" TEXT,
|
||
|
"server" INTEGER NOT NULL,
|
||
|
PRIMARY KEY("id","server"),
|
||
|
FOREIGN KEY("server") REFERENCES "server"("id")
|
||
|
);
|
||
|
""")
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
pass
|