Guest User

Untitled

a guest
Oct 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. [vagrant@devbox] /[...]/default $ drush en progweb_migration -y
  2. PHP Warning: Module 'imagick' already loaded in Unknown on line 0
  3. PHP Warning: Module 'imagick' already loaded in Unknown on line 0
  4. The following extensions will be enabled: progweb_migration
  5. Do you really want to continue? (y/n): y
  6. exception 'DrupalCoreConfigPreExistingConfigException' with message 'Configuration objects[error]
  7. (migrate.migration.custom_user) provided by progweb_migration already exist in active
  8. configuration' in /www/drupal8/core/lib/Drupal/Core/Config/PreExistingConfigException.php:70
  9. Stack trace:
  10. #0 /www/drupal8/core/lib/Drupal/Core/Extension/ModuleInstaller.php(162):
  11. DrupalCoreConfigPreExistingConfigException::create('progweb_migrati...', Array)
  12. #1 /opt/drush7/vendor/drush/drush/commands/core/drupal/environment.inc(129):
  13. DrupalCoreExtensionModuleInstaller->install(Array, true)
  14. #2 /opt/drush7/vendor/drush/drush/commands/core/drupal/environment.inc(196):
  15. drush_module_install(Array)
  16. #3 /opt/drush7/vendor/drush/drush/commands/pm/pm.drush.inc(1120): drush_module_enable(Array)
  17. #4 [internal function]: drush_pm_enable('progweb_migrati...')
  18. #5 /opt/drush7/vendor/drush/drush/includes/command.inc(359):
  19. call_user_func_array('drush_pm_enable', Array)
  20. #6 /opt/drush7/vendor/drush/drush/includes/command.inc(210): _drush_invoke_hooks(Array,
  21. Array)
  22. #7 [internal function]: drush_command('progweb_migrati...')
  23. #8 /opt/drush7/vendor/drush/drush/includes/command.inc(178):
  24. call_user_func_array('drush_command', Array)
  25. #9 /opt/drush7/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php(46): drush_dispatch(Array)
  26. #10 /opt/drush7/vendor/drush/drush/drush.php(76):
  27. DrushBootDrupalBoot->bootstrap_and_dispatch()
  28. #11 /opt/drush7/vendor/drush/drush/drush.php(16): drush_main()
  29. #12 {main}</code>
  30.  
  31. <code>function progweb_migration_enable() {
  32. Migration::registerMigration('custom_user');
  33. Migration::registerMigration('custom_blog');
  34.  
  35. Migration::registerMigration('ProgwebBlog');
  36. Migration::registerMigration('ProgwebUser');
  37. }
  38.  
  39. function progweb_migration_disable() {
  40. Migration::deregisterMigration('custom_user');
  41. Migration::registerMigration('custom_blog');
  42.  
  43. Migration::deregisterMigration('ProgwebBlog');
  44. Migration::registerMigration('ProgwebUser');
  45.  
  46. }
  47.  
  48. /**
  49. * hook_uninstall.
  50. */
  51. function progweb_migration_uninstall() {
  52. db_query("DELETE FROM {config} WHERE name LIKE 'migrate.migration.progweb_custom_blog%'");
  53. db_query("DELETE FROM {config} WHERE name LIKE 'migrate.migration.progweb_custom_user%'");
  54.  
  55. drupal_flush_all_caches();
  56. }
Add Comment
Please, Sign In to add comment