There is a field that stores that database name of a site. But its only filled in after a verify is run, this information appears to be available after install completes.

Attached patch works for me.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

univate’s picture

FileSize
914 bytes

Found another place where this is missing - on imports.

univate’s picture

Status: Active » Needs review
univate’s picture

FileSize
1.25 KB

And this patch adds support for updating the db_name field for migrates.

univate’s picture

Title: db_name not available after install - requires verify to run. » db_name not available after install/import/migrate - requires verify to run.
helmo’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Status: Needs review » Fixed
Related issues: +#1950052: Always add a verify task after site install

Thanks, this in part also fixes #1950052: Always add a verify task after site install

I've simplified it a bit by removing your new hook implementation and moving the code to migrate/hosting_migrate.drush.inc

  • Commit 18d74f1 on 7.x-3.x by helmo:
    Issue #2178749 by univate: Added db_name not available after install/...
  • Commit f08e4c3 on dev-helmo-3.x by helmo:
    Issue #2178749 by univate: Added db_name not available after install/...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.