mirror of
https://github.com/bringout/oca-server-auth.git
synced 2026-04-18 11:52:03 +02:00
12 lines
282 B
Python
12 lines
282 B
Python
def migrate(cr, version):
|
|
# Set password date for already existing users
|
|
cr.execute(
|
|
"""
|
|
UPDATE
|
|
res_users
|
|
SET
|
|
password_write_date = NOW() at time zone 'UTC'
|
|
WHERE
|
|
password_write_date IS NULL;
|
|
"""
|
|
)
|