Skip to content
Snippets Groups Projects
Commit 9da1ae7b authored by git's avatar git Committed by Mike Ryan
Browse files

Issue #2574903 by gl2748: Examples should uninstall configuration

parent 1eb9cb92
No related branches found
No related tags found
No related merge requests found
Showing
with 53 additions and 0 deletions
...@@ -39,3 +39,7 @@ migration_dependencies: ...@@ -39,3 +39,7 @@ migration_dependencies:
required: required:
- beer_node - beer_node
- beer_user - beer_user
dependencies:
enforced:
module:
- migrate_example
...@@ -47,3 +47,7 @@ migration_dependencies: ...@@ -47,3 +47,7 @@ migration_dependencies:
required: required:
- beer_term - beer_term
- beer_user - beer_user
dependencies:
enforced:
module:
- migrate_example
...@@ -76,3 +76,12 @@ process: ...@@ -76,3 +76,12 @@ process:
# We'll learn more about dependencies in beer_node - here, we leave them empty. # We'll learn more about dependencies in beer_node - here, we leave them empty.
migration_dependencies: {} migration_dependencies: {}
# By default, configuration entities (like this migration) are not automatically
# removed when the migration which installed them is uninstalled. To have your
# migrations uninstalled with your migration module, add an enforced dependency
# on your module.
dependencies:
enforced:
module:
- migrate_example
...@@ -98,3 +98,11 @@ process: ...@@ -98,3 +98,11 @@ process:
# migration: beer_node # migration: beer_node
migration_dependencies: {} migration_dependencies: {}
# When a module is creating a custom content type it needs to add an
# enforced dependency to itself, otherwise the content type will persist
# after the module is disabled. See: https://www.drupal.org/node/2629516.
dependencies:
enforced:
module:
- migrate_example
...@@ -28,3 +28,11 @@ shared_configuration: ...@@ -28,3 +28,11 @@ shared_configuration:
# connection to your external database in settings.php and reference its # connection to your external database in settings.php and reference its
# key here. # key here.
key: default key: default
# As with the migration configuration (see beer_term), we add an enforced
# dependency so the migration_group configuration will be removed on module
# uninstall.
dependencies:
enforced:
module:
- migrate_example
...@@ -41,3 +41,7 @@ process: ...@@ -41,3 +41,7 @@ process:
destination: destination:
plugin: entity:user_role plugin: entity:user_role
migration_dependencies: {} migration_dependencies: {}
dependencies:
enforced:
module:
- migrate_example_advanced
...@@ -45,3 +45,7 @@ process: ...@@ -45,3 +45,7 @@ process:
destination: destination:
plugin: entity:user_role plugin: entity:user_role
migration_dependencies: {} migration_dependencies: {}
dependencies:
enforced:
module:
- migrate_example_advanced
...@@ -31,3 +31,7 @@ process: ...@@ -31,3 +31,7 @@ process:
source: category_parent source: category_parent
weight: ordering weight: ordering
migration_dependencies: {} migration_dependencies: {}
dependencies:
enforced:
module:
- migrate_example_advanced
...@@ -63,3 +63,7 @@ destination: ...@@ -63,3 +63,7 @@ destination:
migration_dependencies: migration_dependencies:
required: required:
- wine_terms - wine_terms
dependencies:
enforced:
module:
- migrate_example_advanced
...@@ -5,3 +5,7 @@ source_type: Custom tables and XML ...@@ -5,3 +5,7 @@ source_type: Custom tables and XML
shared_configuration: shared_configuration:
source: source:
key: default key: default
dependencies:
enforced:
module:
- migrate_example_advanced
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment