Holger Brunn (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/6.1_membership into lp:openupgrade-addons/6.1.
Requested reviews: OpenUpgrade Committers (openupgrade-committers) For more details, see: https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1_membership/+merge/138886 -- https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1_membership/+merge/138886 Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/6.1_membership into lp:openupgrade-addons/6.1.
=== added file 'membership/migrations/6.1.0.1/pre-migration.py' --- membership/migrations/6.1.0.1/pre-migration.py 1970-01-01 00:00:00 +0000 +++ membership/migrations/6.1.0.1/pre-migration.py 2012-12-09 16:47:26 +0000 @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This migration script copyright (C) 2012 Therp BV (<http://therp.nl>) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + +from openupgrade import openupgrade + [email protected]() +def migrate(cr, version): + #we need to drop this view because it depends on state + #it will be recreated anyway + cr.execute('''drop view report_membership''') + #type of functional selection fields changed from text to varchar + cr.execute(''' + alter table membership_membership_line alter state type varchar''') + cr.execute(''' + alter table res_partner alter membership_state type varchar''')
-- Mailing list: https://launchpad.net/~credativ Post to : [email protected] Unsubscribe : https://launchpad.net/~credativ More help : https://help.launchpad.net/ListHelp

