Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / sql / Pg-upgrade2-auth / password_hashing.sql
1 -- @tag: password_hashing
2 -- @description: Explicitely set a password hashing algorithm
3 -- @depends:
4 UPDATE auth."user"
5   SET password = '{CRYPT}' || password
6   WHERE NOT (password IS NULL)
7     AND (password <> '')
8     AND NOT (password LIKE '{%}%');