From b27276de78f5475ffb9eeaed834bbc808d08f63c 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 --- address.py | 3 --- contact_mechanism.py | 9 --------- 2 files changed, 12 deletions(-) diff --git a/address.py b/address.py index 1e1b9ae183..b48b46fd1f 100644 --- a/address.py +++ b/address.py @@ -63,9 +63,6 @@ class Address(DeactivableMixin, sequence_ordered(), ModelSQL, ModelView): table = cls.__table_handler__(module_name) - # Migration from 2.4: drop required on sequence - table.not_null_action('sequence', action='remove') - # Migration from 4.0: remove streetbis if table.column_exist('streetbis'): value = Concat( diff --git a/contact_mechanism.py b/contact_mechanism.py index 0c216f5d70..3c13f957c8 100644 --- a/contact_mechanism.py +++ b/contact_mechanism.py @@ -101,15 +101,6 @@ class ContactMechanism( 'party "%(party)s" is not valid .'), }) - @classmethod - def __register__(cls, module_name): - super(ContactMechanism, cls).__register__(module_name) - - table = cls.__table_handler__(module_name) - - # Migration from 2.4: drop required on sequence - table.not_null_action('sequence', action='remove') - @staticmethod def default_type(): return 'phone'