0002_hash_columns.up.sql 413 B

123456789101112
  1. ALTER TABLE user
  2. RENAME COLUMN passHash TO strongMD5Pass;
  3. ALTER TABLE user
  4. ADD COLUMN weakMD5Pass TEXT;
  5. -- The cleartext passwords don't exist, so it's not possible to create weak MD5
  6. -- hashes. Fill in the values with a placeholder value. The administrator will
  7. -- require everyone to reset their passwords if they want to log in with AIM
  8. -- 3.5 thru AIM4.7
  9. UPDATE user
  10. SET weakMD5Pass = strongMD5Pass;