Skip to content

Commit

Permalink
Use different schema name to db name
Browse files Browse the repository at this point in the history
It looks like on the GAE if you use a 'pixl'
schema in a pixl database, then orthanc raw
thinks the database is corrupted
  • Loading branch information
stefpiatek committed Jan 8, 2024
1 parent d9f5dab commit a80dd85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pixl_core/src/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class Base(DeclarativeBase):
"""sqlalchemy base class"""

metadata = MetaData(schema="pixl")
metadata = MetaData(schema="pipeline")


class Extract(Base):
Expand Down
2 changes: 1 addition & 1 deletion postgres/create_pixl_tbls.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
engine = create_engine(url, echo=True, echo_pool="debug")

with engine.connect() as connection:
connection.execute(CreateSchema("pixl", if_not_exists=True))
connection.execute(CreateSchema("pipeline", if_not_exists=True))
connection.commit()

Base.metadata.create_all(engine)

0 comments on commit a80dd85

Please sign in to comment.