Commit Graph
16 Commits
Author SHA1 Message Date
Sergey GolitsynskiyandDannon c2b367c165 Update manage_db.sh ($@ > "$@")
Co-authored-by: Dannon <dannon.baker@gmail.com>
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
Dannon Baker d13e1ce72a Quote *.pyc in the find/cleanup command for manage_db.sh 2019-04-06 20:45:37 -04:00
mvdbeek 847ec2ddd7 Drop .pyc files before attempting to migrate 2019-04-06 08:54:25 +02:00
Nate Coraor 8261a2398a Make the startup scripts play just as nicely with Conda as they do with
virtualenv.
2018-04-04 16:38:01 -04:00
Nicola Soranzo e1be66312b Fix virtualenv activation for some scripts
In particular add virtualenv activation to extract_dataset_parts.sh
to fix the following error when running tools which use
`<parallelism>`:
```
Fatal error:
/tmp/tmpOoQ01k/job_working_directory/000/12/task_0:
Traceback (most recent call last):
File "./scripts/extract_dataset_part.py", line 17, in <module>
import galaxy.model.mapping  # need to load this before we unpickle, in order to setup properties assigned by the mappers
File "/opt/galaxyproject_galaxy_release_17.05/lib/galaxy/model/__init__.py", line 20, in <module>
from six import string_types
ModuleNotFoundError: No module named 'six'
```
2017-09-14 19:58:06 +01:00
John Chilton 865f2d49bd Fix create/manage db scripts to respect GALAXY_VIRTUAL_ENV. 2016-02-29 13:31:17 +00:00
Nate Coraor 367ceae256 Dockerized tests need to create and activate .venv if it does not exist.
Do this by calling common_startup.sh prior to manage_db.sh in
run_test_wrapper.sh. Will require a rebuild of the testing-base image.

Also, have scripts in Galaxy root activate .venv if it exists.
2015-10-16 11:35:52 -04:00
Daniel Blankenberg d2e968122f Change community to tool_shed in manage_db.sh notes. 2013-03-13 11:15:07 -04:00
Greg Von Kuster 6bc3da5e5d Fix for sqlalchemy-migrate scripts so they will function across webapps - galaxy is the default, so no command line changes necessary when migrating the db. 2010-07-20 09:27:14 -04:00
Nate Coraor 006716f53a Egg support overhaul, introduces a number of fixes to the ABI recognition, better build scripts, a rewrite of the eggs library and eliminition of the need for python -ES 2010-03-01 15:41:30 -05:00
Nate Coraor 1f5e079a3a python run from virtualenv sets up site.py to pull things from the real python's lib directory, so 'python -S' breaks it. To fix this, have the check_python.py script check for virtualenv and output the arguments that should be used to start python ('python -E' for virtualenv, 'python -ES' for real), then use these arguments anywhere 'python -ES' was used in the past. 2010-01-04 12:51:34 -05:00
James Taylor 975efff634 Fix security problem with grids. Template should not be passed at call time, it must be passed at configure time. 2009-08-23 12:28:36 -04:00
Greg Von Kuster 489c4ce835 Add new migration script that creates missing indexes and default data on galaxy_user and history_dataset_association tables. Fix the change datatype display in the edit_attributes template. Fix the tool config for main. 2009-04-21 10:26:58 -04:00
Nate Coraor 187a2e25fa Add database versioning support 2009-04-15 15:43:26 -04:00