-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate alembic and add initial database schema #64
Comments
Current status :
|
We discovered that a diff/upgrade from hg19 to hg38 would be too complex. That's why we will add only the missing table/columns for the hg19 to run with the newest SQL queries in Python. For now only the integration of HLA Type, MSI is considered (see Caleydo/tdp_bi_bioinfodb#63). Add a alembic revision with the follwing content:
Important: We only need to run this revision for hg19 and we must not run it on hg38! Manually create a table Note that the table |
Coming from PR #63 we should add Alembic for SQLAchemy. The first alembic revision should create the initial Ordino database schema without data.
Tasks
Connect to Ordino public DBExport schemapg_dump -U postgres -s postgres > exportFile.dmp
(see https://www.postgresql.org/docs/10/app-pgdump.html and https://stackoverflow.com/a/31602990)upgrade
methodIF NOT EXISTS
to prevent errors due to duplicatesdowngrade
method that drops tables and viewsDefinition of Done
alembic head
should create the schema in the local docker publicdb containerThe text was updated successfully, but these errors were encountered: