Browse Source

[FIX] auth_brute_force: Don't execute migration script on install

pull/1343/head
Pedro M. Baeza 6 years ago
parent
commit
06d27d4942
  1. 2
      auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py

2
auth_brute_force/migrations/10.0.2.0.0/pre-migrate.py

@ -6,6 +6,8 @@ from psycopg2 import IntegrityError
def migrate(cr, version): def migrate(cr, version):
if not version:
return
# Fix typo across DB # Fix typo across DB
cr.execute( cr.execute(
""" UPDATE res_authentication_attempt """ UPDATE res_authentication_attempt

Loading…
Cancel
Save