Warning

This document is for an in-development version 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.0146_workflow_paths

"""
Migration script for workflow paths.
"""
from __future__ import print_function

import logging

from sqlalchemy import (
    Column,
    MetaData,
    TEXT,
)

from galaxy.model.migrate.versions.util import (
    add_column,
    drop_column
)

log = logging.getLogger(__name__)
metadata = MetaData()


[docs]def upgrade(migrate_engine): print(__doc__) metadata.bind = migrate_engine metadata.reflect() from_path_column = Column("from_path", TEXT) add_column(from_path_column, "stored_workflow", metadata)
[docs]def downgrade(migrate_engine): metadata.bind = migrate_engine drop_column("from_path", "stored_workflow", metadata)