14 lines
474 B
Python
14 lines
474 B
Python
# -*- coding: utf-8 -*-
|
|
# Phase 6 (Sub 11) — drop legacy MRP columns from certificate tables.
|
|
|
|
import logging
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
def migrate(cr, version):
|
|
if not version:
|
|
return
|
|
cr.execute("ALTER TABLE fp_certificate DROP COLUMN IF EXISTS production_id")
|
|
cr.execute("ALTER TABLE fp_thickness_reading DROP COLUMN IF EXISTS production_id")
|
|
_logger.info("Sub 11: dropped production_id from fp_certificate + fp_thickness_reading")
|