libreccm-legacy/ccm-ldn-terms/sql/ccm-ldn-terms/default/upgrade/switch-terms-atoz-dep.sql

18 lines
733 B
SQL
Executable File

-- switch the dependency from atoz to terms
-- switch the initializer dependency
update init_requirements
set required_init = 'com.arsdigita.london.terms.Initializer',
init = 'com.arsdigita.london.atoz.Initializer'
where required_init = 'com.arsdigita.london.atoz.Initializer'
and init = 'com.arsdigita.london.terms.Initializer';
-- switch the DomainProvider from terms.atoz to atoz.terms
update acs_objects
set object_type = 'com.arsdigita.london.atoz.terms.DomainProvider',
default_domain_class = 'com.arsdigita.london.atoz.terms.DomainProvider',
display_name = 'com.arsdigita.london.atoz.terms.DomainProvider ' || object_id
where object_type = 'com.arsdigita.london.terms.atoz.DomainProvider';