1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00
phorge-phorge/resources/sql/autopatches/20140218.passwords.2.prefix.sql
epriestley 5778627e41 Provide more storage space for password hashes and migrate existing hashes to "md5:"
Summary: Ref T4443. Provide more space; remove the hack-glue.

Test Plan: Logged out, logged in, inspected database.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4443

Differential Revision: https://secure.phabricator.com/D8269
2014-02-18 14:09:36 -08:00

5 lines
174 B
SQL

/* Mark all existing password hashes as "Iterated MD5". */
UPDATE {$NAMESPACE}_user.user
SET passwordHash = CONCAT('md5:', passwordHash)
WHERE LENGTH(passwordHash) > 0;