Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3787 Представления

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

Аватар
Отменить

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.

Автор

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.