← Back to team overview

openerp-community team mailing list archive

Re: How are new fields added to the database?

 

Quoting "Niels Huylebroeck" <nh@xxxxxxxxxx>:
Update the module that contained said changes, if unsure a "base" module
update will re-do and recheck everything (not always the best solution).

OK, I did an --update=all, which helped, too.

Are there any disadvantages of upgrading all modules, other than
startup of the server takes some time?

2012/10/4 W. Martin Borgert <debacle@xxxxxxxxxx>

Hi,

this is probably a very basic question:

When I upgrade from one version to another and a model gets a new field,
how is this field added to the database?

Example: I upgraded from nightly build 6.2dev-20120928-230101-1 to
6.2dev-20120930-230101-1. In changeset 4465 between the versions, the
model 'ir.model.access' got a new boolean field "active", which is not
in my database.

What do I have to do to migrate the database? (In the Django world,
there "south", probably because of the migrating swallows...)

Thanks in advance!




Follow ups

References