<commit_before># -*- coding: utf-8 -*-
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(cr, version):
    cr.execute(
        '''update product_template set
        membership = p.membership,
        membership_date_from = p.membership_date_from,
        membership_date_to = p.membership_date_to
        from product_product p
        where p.product_tmpl_id = product_template.id''')
    cr.execute(
        '''alter table product_product
        drop column membership,
        drop column membership_date_from,
        drop column membership_date_to''')
<commit_msg>[FIX] don't drop columns<commit_after># -*- coding: utf-8 -*-
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(cr, version):
    cr.execute(
        '''update product_template set
        membership = p.membership,
        membership_date_from = p.membership_date_from,
        membership_date_to = p.membership_date_to
        from product_product p
        where p.product_tmpl_id = product_template.id''')

{'fraction_non_alphanumeric': 0.11102172164119067, 'fraction_numerical': 0.011263073209975865, 'mean_word_length': 3.119205298013245, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1686931', 'n_tokens_mistral': 403, 'n_tokens_neox': 390, 'n_words': 90}