We should add a migration path for existing users of the domain_conf module.

This means primarily: read values from domain_conf table and insert them into variable_store table.

We should also make sure that domain_conf is disabled after installing domain_varibale, to avoid any potential conflicts or misunderstandings...

CommentFileSizeAuthor
#1 migrate_domain_conf.zip4.28 KBothermachines
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

othermachines’s picture

Version: » 7.x-1.x-dev
FileSize
4.28 KB

Better late than never.

I'm attaching a module I've created a sandbox project for migrating from Domain Configuration (domain_conf) and Domain Theme (domain_theme) 6.x to Domain Variable (7.x). Hope it helps someone.

This module defines variables in the 'domain' realm provided by Domain Variable module and migrates the data from the {domain_conf} and {domain_theme} tables to {variable_store}. Not all variables from the 6.x modules are supported*. Some manual reconfiguration may be required.

* See: Differences to domain configuration/settings/theme.

Steps:

(find these in README.txt)

1. Back up your database!

2. Upgrade Drupal core to 7.x (see core file UPGRADE.txt)

3. Go through steps of upgrading Domain Access module but DO NOT enable any submodules until this process is finished. See: Upgrading to Drupal 7 using Domain Access

4. Enable this module and all dependencies.

5. Go to Administration > Structure > Migrate Domain Configuration

6. Click "Migrate".

7. Check your data in {variables_store} table, or via the UI for each domain at admin/structure/domain/view/[domain id]/variables (May need to enable Variable Admin module)

8. Uninstall modules Domain Configuration and Domain Theme.

9. If necessary, manually remove the following tables: {domain_conf} {domain_theme}

10. Disable, uninstall and remove this module.

lolandese’s picture

Priority: Major » Normal
Status: Active » Needs review

Thanks.

othermachines’s picture

Here it is as a sandbox project: Migrate Domain Configuration and Domain Theme

bforchhammer’s picture

Thanks, I've added a link on the project page.