Browse Source

[ADD] website_recaptcha_reloaded: pre-migration.py

pull/99/head
Vincent Van Rossem 5 years ago
committed by Rémy Taymans
parent
commit
c659932ade
  1. 13
      website_recaptcha_reloaded/migrations/12.0.0.0.1/pre-migration.py

13
website_recaptcha_reloaded/migrations/12.0.0.0.1/pre-migration.py

@ -0,0 +1,13 @@
from openupgradelib import openupgrade
_field_renames = [
("website", "website", "recaptcha_site_key", "recaptcha_key_site"),
("website", "website", "recaptcha_private_key", "recaptcha_key_secret"),
("res.config.settings", "res_config_settings", "recaptcha_site_key", "recaptcha_key_site"),
("res.config.settings", "res_config_settings", "recaptcha_private_key", "recaptcha_key_secret"),
]
@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_fields(env, _field_renames)
Loading…
Cancel
Save