<commit_before>from odoo import api, SUPERUSER_ID


def migrate(cr, version):
    # fill column
    #
    # we can do it only "post-", because in "pre-" there is no
    # _update_config_parameter_value method yet
    env = api.Environment(cr, SUPERUSER_ID, {})

    field_id = env.ref('base.field_ir_config_parameter_value').id
    default_values = env['ir.property'].search([
        ('fields_id', '=', field_id),
        ('company_id', '=', False)
    ])

    default_values._update_config_parameter_value()<commit_msg>:ambulance: migration script stopped working after refactoring<commit_after>from odoo import api, SUPERUSER_ID


def migrate(cr, version):
    # fill column
    #
    # we can do it only "post-", because in "pre-" there is no
    # _update_config_parameter_value method yet
    env = api.Environment(cr, SUPERUSER_ID, {})

    field_id = env.ref('base.field_ir_config_parameter_value').id
    default_values = env['ir.property'].search([
        ('fields_id', '=', field_id),
        ('company_id', '=', False)
    ])

    field = env.ref('base.field_ir_config_parameter_value')
    default_values._update_db_value_website_dependent(field)
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0, 'mean_word_length': 3.8375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4559265', 'n_tokens_mistral': 385, 'n_tokens_neox': 370, 'n_words': 81}