3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Document migration instructions.

This commit is contained in:
Michael Stenta 2020-09-27 17:42:29 -04:00
parent 2aa8abc1ba
commit cf8ae810e8
2 changed files with 24 additions and 0 deletions

22
docs/migration/index.md Normal file
View file

@ -0,0 +1,22 @@
# Migrating from farmOS 1.x to 2.x
1. Install farmOS 2.x.
2. Install the farmOS modules you intend to use (this will determine what
data is migrated).
3. Add farmOS 1.x database connection info to `settings.php`:
$databases['migrate']['default'] = [
'database' => 'my_farmos_1x_db',
'username' => 'my-db-username',
'password' => 'my-db-password',
'prefix' => '',
'host' => 'localhost',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
];
4. Install the farmOS Migrate (`farm_migrate`) module.
5. Run the farmOS 1.x Migration via Drush:
drush migrate:import --group=farm_migrate

View file

@ -13,4 +13,6 @@ nav:
- Debugging: development/debug.md
- Automated tests: development/tests.md
- Coding standards: development/code.md
- Migration:
- Overview: migration/index.md
theme: readthedocs