Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py
|
@ -11,7 +11,7 @@ def migrate(cr, version): |
|
|
# Don't act when coming from version 9 |
|
|
# Don't act when coming from version 9 |
|
|
cr.execute("SELECT 1 FROM pg_class WHERE relname = 'res_banned_remote'") |
|
|
cr.execute("SELECT 1 FROM pg_class WHERE relname = 'res_banned_remote'") |
|
|
if not cr.fetchone(): |
|
|
if not cr.fetchone(): |
|
|
return |
|
|
|
|
|
|
|
|
return |
|
|
# Fix typo across DB |
|
|
# Fix typo across DB |
|
|
cr.execute( |
|
|
cr.execute( |
|
|
""" UPDATE res_authentication_attempt |
|
|
""" UPDATE res_authentication_attempt |
|
|