From b2555fbcbe4300b6477e5cf95bafb8b7865c12df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 9 Aug 2018 20:43:51 +0200 Subject: [PATCH] Remove migration before 3.0 issue6470 review52421002 --- stock.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/stock.py b/stock.py index 9a97638c3c..1a73bd1dc3 100644 --- a/stock.py +++ b/stock.py @@ -38,21 +38,6 @@ class Move(metaclass=PoolMeta): 'Anglo-Saxon quantity can not be greater than quantity.'), ] - @classmethod - def __register__(cls, module_name): - cursor = Transaction().connection.cursor() - - super(Move, cls).__register__(module_name) - table = cls.__table_handler__(module_name) - - # Migration from 2.8: split anglo_saxon_quantity - if table.column_exist('anglo_saxon_quantity'): - cursor.execute('UPDATE "' + cls._table + '" ' - 'SET in_anglo_saxon_quantity = anglo_saxon_quantity, ' - 'out_anglo_saxon_quantity = anglo_saxon_quantity') - table.drop_constraint('check_anglo_saxon_quantity') - table.drop_column('anglo_saxon_quantity') - @staticmethod def default_in_anglo_saxon_quantity(): return 0.0