<commit_before># Copyright 2019 Eficent <http://www.eficent.com>
# Copyright 2019 Tecnativa - <NAME>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
    cr = env.cr
    if openupgrade.column_exists(cr, 'hr_employee', 'initial_employment_date'):
        openupgrade.logged_query(
            cr, """
            UPDATE hr_employee
            SET service_hire_date = initial_employment_date;
            WHERE initial_employment_date IS NOT NULL;
            """
        )<commit_msg>Fix bad syntax in query<commit_after># Copyright 2019 Eficent <http://www.eficent.com>
# Copyright 2019 Tecnativa - <NAME>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
    cr = env.cr
    if openupgrade.column_exists(cr, 'hr_employee', 'initial_employment_date'):
        openupgrade.logged_query(
            cr, """
            UPDATE hr_employee
            SET service_hire_date = initial_employment_date
            WHERE initial_employment_date IS NOT NULL;
            """
        )
{'fraction_non_alphanumeric': 0.10258548790658882, 'fraction_numerical': 0.016680567139282735, 'mean_word_length': 2.883495145631068, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2769739', 'n_tokens_mistral': 398, 'n_tokens_neox': 358, 'n_words': 84}