Skip to content

Commit

Permalink
Move triggers out of migrate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Dec 7, 2021
1 parent d63d3b5 commit c181ef1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/model/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
from galaxy import model
from galaxy.model import mapper_registry
from galaxy.model.base import SharedModelMapping
from galaxy.model.migrate.triggers.update_audit_table import install as install_timestamp_triggers
from galaxy.model.orm.engine_factory import build_engine
from galaxy.model.security import GalaxyRBACAgent
from galaxy.model.triggers.update_audit_table import install as install_timestamp_triggers
from galaxy.model.view.utils import install_views

log = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

from sqlalchemy import Column, DateTime, MetaData, Table

from galaxy.model.migrate.triggers.history_update_time_field import drop_timestamp_triggers, install_timestamp_triggers
from galaxy.model.migrate.versions.util import add_column, drop_column
from galaxy.model.orm.now import now
from galaxy.model.triggers.history_update_time_field import drop_timestamp_triggers, install_timestamp_triggers

log = logging.getLogger(__name__)
metadata = MetaData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from sqlalchemy import MetaData

from galaxy.model.migrate.triggers.history_update_time_field import (
from galaxy.model.triggers.history_update_time_field import (
drop_timestamp_triggers,
install_timestamp_triggers,
)
Expand Down
8 changes: 4 additions & 4 deletions lib/galaxy/model/migrate/versions/0175_history_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

from sqlalchemy import Column, DateTime, ForeignKey, Integer, MetaData, PrimaryKeyConstraint, Table

from galaxy.model.migrate.triggers import (
history_update_time_field as old_triggers, # rollback to old ones
update_audit_table as new_triggers, # install me
)
from galaxy.model.migrate.versions.util import (
create_table,
drop_table
)
from galaxy.model.triggers import (
history_update_time_field as old_triggers, # rollback to old ones
update_audit_table as new_triggers, # install me
)

log = logging.getLogger(__name__)
now = datetime.datetime.utcnow
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/data/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ def get_var(var_name):
'galaxy.model.dataset_collections',
'galaxy.model.dataset_collections.types',
'galaxy.model.migrate',
'galaxy.model.migrate.triggers',
'galaxy.model.migrate.versions',
'galaxy.model.orm',
'galaxy.model.store',
'galaxy.model.tool_shed_install',
'galaxy.model.tool_shed_install.migrate',
'galaxy.model.tool_shed_install.migrate.versions',
'galaxy.model.triggers',
'galaxy.model.unittest_utils',
'galaxy.model.view',
'galaxy.quota',
Expand Down

0 comments on commit c181ef1

Please sign in to comment.