From 9fffc105a5216d83139defda83c615465d89d456 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Tue, 26 Apr 2022 11:45:14 +0200
Subject: [PATCH] [update] move migration scripts to 13.0

---
 migrations/14.0.1.0.0/post-migration.py | 40 -------------------------
 migrations/14.0.1.0.0/pre-migration.py  | 13 --------
 2 files changed, 53 deletions(-)
 delete mode 100644 migrations/14.0.1.0.0/post-migration.py
 delete mode 100644 migrations/14.0.1.0.0/pre-migration.py

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 f297ff5..0000000
--- a/migrations/14.0.1.0.0/post-migration.py
+++ /dev/null
@@ -1,40 +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 get_years():
-    year_list = []
-    for i in range(2019, 2030):
-        year_list.append((i, str(i)))
-    return year_list
-
-
-def get_months():
-    month_list = []
-    for i in range(1, 13):
-        month_list.append((i, str(i)))
-    return month_list
-
-
-def ur_month_timesheet_map_values(env):
-    openupgrade.map_values(
-        env.cr,
-        openupgrade.get_legacy_name("month"),
-        "month",
-        get_months(),
-        table="ur_month_timesheet",
-    )
-    openupgrade.map_values(
-        env.cr,
-        openupgrade.get_legacy_name("year"),
-        "year",
-        get_years(),
-        table="ur_month_timesheet",
-    )
-
-
-@openupgrade.migrate()
-def migrate(env, version):
-    ur_month_timesheet_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 754ee3a..0000000
--- a/migrations/14.0.1.0.0/pre-migration.py
+++ /dev/null
@@ -1,13 +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 = {
-    "ur_month_timesheet": [("month", None), ("year", None)],
-}
-
-
-@openupgrade.migrate()
-def migrate(env, version):
-    openupgrade.rename_columns(env.cr, column_renames)
-- 
GitLab