Commit Graph
5 Commits
Author SHA1 Message Date
Sergey Golitsynskiy 1a1ae8d3d2 Adapt manage_db.py for usegalaxy playbook; add tests 2022-03-09 18:41:50 -05:00
Sergey Golitsynskiy 92b2e67145 Apply black, isort (squashed)
Squashed:
- pick 8a26c3c7af Fix import order in config
- squash ebe36de5fc Apply black, isort
2022-03-09 18:41:49 -05:00
Sergey Golitsynskiy f32b220cf8 Modify behavior of legacy wrapper, add tests, refactor
If the database is combined, running `./manage_db.sh upgrade` should upgrade
BOTH models: gxy and tsi. However, if tsi uses a separate database, only
the galaxy model should be updated.

Also, see this for context: https://github.com/galaxyproject/galaxy/pull/13108#discussion_r789108576

See inline comments for more details.

The new tests are examples of new behavior.

All refactoring is directly related to the changes in this commit.
2022-03-09 18:41:03 -05:00
Sergey Golitsynskiy 537cf5d2aa Preserve manage_db.sh, but do not hide alembic
- Preserves usage of legacy script while not hiding the Alembic script.
    (see manage_db.sh and run_alembic.sh)
- Adds documentation (see top of script files)
- Includes misc. relevant refactorings
- Includes unit tests for testing legacy script handling
2022-03-09 18:41:03 -05:00
Sergey Golitsynskiy 3c992a608f Add create/migrate scripts for Alembic dbs (squashed)
Also add exec permissions to create/migrate python scripts.
(not sure this is required, adding for consistency with previous
version)

+ A few fixes for TS scripts, tests

Squashed:
- pick b62443245e Add create/migrate scripts for Alembic dbs
- squash 06f0a923ca Fix integration test (test only relevant for TS)
2022-03-09 18:41:02 -05:00