Merge lp:~zaber/openupgrade-server/6.1-docs into lp:openupgrade-server/6.1

Proposed by Don Kirkby
Status: Merged
Merged at revision: 3991
Proposed branch: lp:~zaber/openupgrade-server/6.1-docs
Merge into: lp:openupgrade-server/6.1
Diff against target: 42 lines (+35/-0)
1 file modified
openerp/openupgrade/doc/source/intro.rst (+35/-0)
To merge this branch: bzr merge lp:~zaber/openupgrade-server/6.1-docs
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) Approve
Review via email: mp+123621@code.launchpad.net

Description of the change

Question 208187 reminded me that the documentation never explicitly spells out the steps required to run a migration. This is my attempt to spell it out at the end of the introduction.

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi Don,

thank you for being involved with the project and picking this up!

I have made some suggestions here, tell me what you think:

https://code.launchpad.net/~therp-nl/openupgrade-server/6.1-migration-howto-additions/+merge/123687

Cheers,
Stefan.

3992. By Don Kirkby

Merge Stefan's suggestions for migration steps.

Revision history for this message
Don Kirkby (donkirkby) wrote :

Good suggestions, Stefan. I merged them in.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Merged. Thanks again!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/openupgrade/doc/source/intro.rst'
2--- openerp/openupgrade/doc/source/intro.rst 2012-06-06 09:13:43 +0000
3+++ openerp/openupgrade/doc/source/intro.rst 2012-09-11 19:12:21 +0000
4@@ -18,3 +18,38 @@
5 Apart from a collection of migration scripts, this project aims at providing developers with a set of tools that they can use to extract the changes that their migration scripts need to cover. You can read more on that in the :doc:`analysis` section.
6
7 Please do not use the OpenUpgrade software to run a live instance of your OpenERP database. It is not maintained for that purpose. Use the official OpenERP software for that.
8+
9+Migrating Your Database
10+=======================
11+
12+1. Check out the OpenUpgrade source code from Launchpad for the branches you
13+ need. Each branch migrates to its version from the previous version, so
14+ branch 6.0 migrates from 5.0 to 6.0. If you are skipping versions, you still
15+ need to run all the branches in between.
16+
17+2. Compare your set of installed modules with the modules that are covered by
18+ the OpenUpgrade Addons branch you are using. Upgrading a database that has
19+ uncovered modules installed is likely to fail. Authoritative in this respect
20+ is the existence and contents of a *user_notes.txt* file in the
21+ migrations/[version] subdirectory of each module. We also try to indicate
22+ module coverage in the documentation but it sometimes lags behind.
23+
24+3. Decide which database you are going to upgrade. You absolutely *must* make a
25+ backup of your live database before you start this process!
26+
27+4. Edit the configuration files and command line parameters to point to the
28+ database you are going to upgrade. The parameters will probably be the same
29+ as you use on your live server, except they point to the OpenUpgrade
30+ addons source code, point to the database you want to upgrade, and add the
31+ *--update all --stop-after-init* flags.
32+
33+5. Run the upgrade and check for errors. You will probably learn a lot about
34+ your data and have to do some manual clean up before and after the upgrade.
35+ Expect to repeat the process several times as you encounter errors, clean up
36+ your data, and try again. If necessary, ask for help or report bugs on
37+ Launchpad.
38+
39+6. Once the data migration is successful, run the official version of OpenERP
40+ against it to test how the migrated data behaves under the new version.
41+ Remember that the OpenUpgrade version of the source code is only intended to
42+ perform the migration, not run the OpenERP server.

Subscribers

People subscribed via source and target branches

to status/vote changes: