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.0174_readd_update_time_triggers

Re-add triggers to update history.update_time when contents are changed.

import logging

from sqlalchemy import MetaData

from galaxy.model.migrate.triggers.history_update_time_field import (

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

[docs]def upgrade(migrate_engine): print(__doc__) metadata.bind = migrate_engine metadata.reflect() install_timestamp_triggers(migrate_engine)
[docs]def downgrade(migrate_engine): metadata.bind = migrate_engine metadata.reflect() drop_timestamp_triggers(migrate_engine)