Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3784 Weergaven

I have some fields added from my custom module. This field has been recorded into the database. However, if I uninstalled my custom module and installed it again becasue of (changing my python code), it seems like the field is a new one and its data before uninstalled is gone.

Can I still keep all the data so that when I uninstalled and install my custom module again and agian it won't lost?

Thanks you very much

Avatar
Annuleer

There actually is a warning that tells you that all database entrys will be deleted when you uninstall any module.

Instead, after changing your code just Update your module.

Auteur

It seems that just Update the module doesn't compile the python, am I right? It update everything else except python.

That is true.

I'm not sure whether thats the way it's supposed to be done, but I restart my server to recompile all my code. This doesn't even need a module update.