Sha256: a5602f0678b8ed2789434a364e582a798ef9eb9e699f15bf76f4ca4517f25196
Contents?: true
Size: 923 Bytes
Versions: 2
Compression:
Stored size: 923 Bytes
Contents
Sequel.migration do up do puts <<-MESSAGE WARNING --------------------------------------------------------------------------------- You need to adapt your mailserver configuration with this version of smailr, as passwords are now stored including the hash scheme. Select the hash from `mailboxes.password` and the scheme from `mailboxes.password_scheme` --------------------------------------------------------------------------------- WARNING MESSAGE add_column :mailboxes, :password_scheme, String from(:mailboxes).update(password_scheme: "{SHA}") alter_table(:mailboxes) do set_column_not_null(:password_scheme) end end # Downgrade is not supported, as we would drop necessary information do do effective hashing # in case this feature was already used to add various hashes to the database end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smailr-0.6.2 | migrations/005_mailboxes_add_digest_identifier_to_passwords.rb |
smailr-0.6.1 | migrations/005_mailboxes_add_digest_identifier_to_passwords.rb |