Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [vagrant@devbox] /[...]/default $ drush en progweb_migration -y
- PHP Warning: Module 'imagick' already loaded in Unknown on line 0
- PHP Warning: Module 'imagick' already loaded in Unknown on line 0
- The following extensions will be enabled: progweb_migration
- Do you really want to continue? (y/n): y
- exception 'DrupalCoreConfigPreExistingConfigException' with message 'Configuration objects[error]
- (migrate.migration.custom_user) provided by progweb_migration already exist in active
- configuration' in /www/drupal8/core/lib/Drupal/Core/Config/PreExistingConfigException.php:70
- Stack trace:
- #0 /www/drupal8/core/lib/Drupal/Core/Extension/ModuleInstaller.php(162):
- DrupalCoreConfigPreExistingConfigException::create('progweb_migrati...', Array)
- #1 /opt/drush7/vendor/drush/drush/commands/core/drupal/environment.inc(129):
- DrupalCoreExtensionModuleInstaller->install(Array, true)
- #2 /opt/drush7/vendor/drush/drush/commands/core/drupal/environment.inc(196):
- drush_module_install(Array)
- #3 /opt/drush7/vendor/drush/drush/commands/pm/pm.drush.inc(1120): drush_module_enable(Array)
- #4 [internal function]: drush_pm_enable('progweb_migrati...')
- #5 /opt/drush7/vendor/drush/drush/includes/command.inc(359):
- call_user_func_array('drush_pm_enable', Array)
- #6 /opt/drush7/vendor/drush/drush/includes/command.inc(210): _drush_invoke_hooks(Array,
- Array)
- #7 [internal function]: drush_command('progweb_migrati...')
- #8 /opt/drush7/vendor/drush/drush/includes/command.inc(178):
- call_user_func_array('drush_command', Array)
- #9 /opt/drush7/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php(46): drush_dispatch(Array)
- #10 /opt/drush7/vendor/drush/drush/drush.php(76):
- DrushBootDrupalBoot->bootstrap_and_dispatch()
- #11 /opt/drush7/vendor/drush/drush/drush.php(16): drush_main()
- #12 {main}</code>
- <code>function progweb_migration_enable() {
- Migration::registerMigration('custom_user');
- Migration::registerMigration('custom_blog');
- Migration::registerMigration('ProgwebBlog');
- Migration::registerMigration('ProgwebUser');
- }
- function progweb_migration_disable() {
- Migration::deregisterMigration('custom_user');
- Migration::registerMigration('custom_blog');
- Migration::deregisterMigration('ProgwebBlog');
- Migration::registerMigration('ProgwebUser');
- }
- /**
- * hook_uninstall.
- */
- function progweb_migration_uninstall() {
- db_query("DELETE FROM {config} WHERE name LIKE 'migrate.migration.progweb_custom_blog%'");
- db_query("DELETE FROM {config} WHERE name LIKE 'migrate.migration.progweb_custom_user%'");
- drupal_flush_all_caches();
- }
Add Comment
Please, Sign In to add comment