Merge lp:~therp-nl/openupgrade-addons/7.0-auth_crypt into lp:openupgrade-addons

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Merged at revision: 8165
Proposed branch: lp:~therp-nl/openupgrade-addons/7.0-auth_crypt
Merge into: lp:openupgrade-addons
Diff against target: 46 lines (+37/-0)
2 files modified
auth_crypt/migrations/7.0.1.1/openupgrade_analysis_work.txt (+6/-0)
auth_crypt/migrations/7.0.1.1/pre-migration.py (+31/-0)
To merge this branch: bzr merge lp:~therp-nl/openupgrade-addons/7.0-auth_crypt
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza code review Approve
Review via email: mp+219433@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

I had this one pending! Thanks for doing before.

Regards.

review: Approve (code review)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Release early, release often ;-)

Thanks for the review.

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

We can merge this branch due to long inactivity, and there's no risk in doing it.

Regards.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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 @@
1---Fields in module 'auth_crypt'---
2# hashed password is now stored in a separate column. Assume that all
3# passwords are hashed after installation of base_crypt in 6.1, so
4# rename the column
5auth_crypt / res.users / password_crypt (char) : NEW
6---XML records in module 'auth_crypt'---
07
=== 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 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# This module copyright (C) 2014 Therp BV (<http://therp.nl>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22from openerp.openupgrade import openupgrade
23
24column_renames = {
25 'res_users': [('password', 'password_crypt')],
26}
27
28
29@openupgrade.migrate()
30def migrate(cr, version):
31 openupgrade.rename_columns(cr, column_renames)

Subscribers

People subscribed via source and target branches