Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.model.migrate.versions.0114_update_migrate_tools_table_again

"""
Migration script to update the migrate_tools.repository_path column to point to the new location lib/tool_shed/galaxy_install/migrate.
"""

import logging

log = logging.getLogger(__name__)


[docs]def upgrade(migrate_engine): print(__doc__) # Create the table. try: cmd = "UPDATE migrate_tools set repository_path='lib/tool_shed/galaxy_install/migrate';" migrate_engine.execute(cmd) except Exception: log.exception("Updating migrate_tools.repository_path column to point to the new location lib/tool_shed/galaxy_install/migrate failed.")
[docs]def downgrade(migrate_engine): try: cmd = "UPDATE migrate_tools set repository_path='lib/galaxy/tool_shed/migrate';" migrate_engine.execute(cmd) except Exception: log.exception("Updating migrate_tools.repository_path column to point to the old location lib/galaxy/tool_shed/migrate failed.")