diff --git a/migrations/14.0.1.0.0/post-migration.py b/migrations/14.0.1.0.0/post-migration.py deleted file mode 100644 index a2c1acbe1387cce19c0b2cc2c4b767b54818a505..0000000000000000000000000000000000000000 --- a/migrations/14.0.1.0.0/post-migration.py +++ /dev/null @@ -1,23 +0,0 @@ -# © 2022 Le Filament (<http://www.le-filament.com>) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from openupgradelib import openupgrade # pylint: disable=W7936 - - -def scop_liasse_fiscale_map_values(env): - openupgrade.map_values( - env.cr, - openupgrade.get_legacy_name("year"), - "year", - [ - (2020, "2020"), - (2021, "2021"), - (2022, "2022"), - ], - table="scop_cotisation", - ) - - -@openupgrade.migrate() -def migrate(env, version): - scop_liasse_fiscale_map_values(env) diff --git a/migrations/14.0.1.0.0/pre-migration.py b/migrations/14.0.1.0.0/pre-migration.py deleted file mode 100644 index b934a5d07df813432062016245041f28af469b67..0000000000000000000000000000000000000000 --- a/migrations/14.0.1.0.0/pre-migration.py +++ /dev/null @@ -1,14 +0,0 @@ -# © 2022 Le Filament (<http://www.le-filament.com>) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from openupgradelib import openupgrade - -column_renames = { - "scop_cotisation": [("year", None)], -} - -# TODO: migrer lf_note_ref dans ref - -@openupgrade.migrate() -def migrate(env, version): - openupgrade.rename_columns(env.cr, column_renames)