Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/7.0-auth_crypt into lp:openupgrade-addons.
Requested reviews: OpenUpgrade Committers (openupgrade-committers) For more details, see: https://code.launchpad.net/~therp-nl/openupgrade-addons/7.0-auth_crypt/+merge/219433 -- https://code.launchpad.net/~therp-nl/openupgrade-addons/7.0-auth_crypt/+merge/219433 Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/7.0-auth_crypt into lp:openupgrade-addons.
=== added file 'auth_crypt/migrations/7.0.1.1/openupgrade_analysis_work.txt' --- auth_crypt/migrations/7.0.1.1/openupgrade_analysis_work.txt 1970-01-01 00:00:00 +0000 +++ auth_crypt/migrations/7.0.1.1/openupgrade_analysis_work.txt 2014-05-13 21:48:22 +0000 @@ -0,0 +1,6 @@ +---Fields in module 'auth_crypt'--- +# hashed password is now stored in a separate column. Assume that all +# passwords are hashed after installation of base_crypt in 6.1, so +# rename the column +auth_crypt / res.users / password_crypt (char) : NEW +---XML records in module 'auth_crypt'--- === added file 'auth_crypt/migrations/7.0.1.1/pre-migration.py' --- auth_crypt/migrations/7.0.1.1/pre-migration.py 1970-01-01 00:00:00 +0000 +++ auth_crypt/migrations/7.0.1.1/pre-migration.py 2014-05-13 21:48:22 +0000 @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2014 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 openerp.openupgrade import openupgrade + +column_renames = { + 'res_users': [('password', 'password_crypt')], +} + + [email protected]() +def migrate(cr, version): + openupgrade.rename_columns(cr, column_renames)
-- Mailing list: https://launchpad.net/~credativ Post to : [email protected] Unsubscribe : https://launchpad.net/~credativ More help : https://help.launchpad.net/ListHelp

