From 06d27d494288358b5177101f4441dc498f0c4304 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 13 Aug 2018 17:12:26 +0200 Subject: [PATCH] [FIX] auth_brute_force: Don't execute migration script on install --- auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py b/auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py index fc497cc60..7096cb959 100644 --- a/auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py +++ b/auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py @@ -6,6 +6,8 @@ from psycopg2 import IntegrityError def migrate(cr, version): + if not version: + return # Fix typo across DB cr.execute( """ UPDATE res_authentication_attempt