Source code for galaxy.model.migrate.versions.0163_worker_process_pid

"""
Adds `pid` column to worker_process table.
"""


import logging

from sqlalchemy import (
    Column,
    Integer,
    MetaData
)

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

log = logging.getLogger(__name__)


[docs]def upgrade(migrate_engine): print(__doc__) metadata = MetaData() metadata.bind = migrate_engine metadata.reflect() pid_column = Column('pid', Integer) add_column(pid_column, 'worker_process', metadata)
[docs]def downgrade(migrate_engine): metadata = MetaData() metadata.bind = migrate_engine metadata.reflect() drop_column('pid', 'worker_process', metadata)