Giter Site home page Giter Site logo

aw_migrate's Introduction

Module for migrating Automatweb CMS data to Drupal

Installation:

  1. Make sure you have Drush installed http://drupal.org/project/drush
  2. Create empty database for Drupal
  3. Download and install Drupal 7 either manually or using Drush
  4. Create another database for Automatweb, and import existing data there
  5. Add following snippet to sites/default/settings.php:
$databases['aw']['default'] = array (
  'driver' => 'mysql',
  'database' => 'your_automatweb_database_name',
  'username' => 'your_automatweb_database_username',
  'password' => 'your_automatweb_database_password',
);

...and run following commands inside your Drupal site root directory:

git clone https://github.com/kristjanjansen/aw_migrate.git sites/all/modules/aw_migrate
drush en aw_migrate -y
drush vset aw_domain http://your_automatweb_site_url_without_trailing_slash
drush mi --all

For big sites migrating everything in one go could be very time-consuming, it might be a good idea to run separate and/or partial migrations. Run drush mi --help to find out more.

aw_migrate's People

Contributors

kristjanjansen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

aw_migrate's Issues

Remove duplicate user names

Drupal requires both uid and username be unique. In some cases there could be duplicates in AW user names. Track and eliminate those (rename dupes as username_x?)

Remove table key hardcoding

Everythere where's

Database::getConnection('default', 'aw');

there should be something like

Database::getConnection('default', variable_get('aw_db_key', 'aw'));

Language migration

This has two steps:

  1. Migrate languages: aw.languages table to look up (figure out the statuses!), http://api.drupal.org/api/drupal/includes--locale.inc/function/locale_add_language/7. As there's no language target in Migrate APIs where lang migration should live? There''re some talk about MigrationBase descendant class but no docs http://drupal.org/node/1012818
  2. Assign Drupal language ids / langcodes to content. As there's likely no direct mapping with aw lang id's, figure out how to make mapping possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.