public override void RegisterMigrations(DbMigrationSet migrations) { if (!migrations.IsNewInstall()) { migrations.AddPostUpgradeAction("1.2.0.0", "FactorsPlainValue", "Switch extra factors to storing unencrypted values", s => UnencryptFactorValues(s)); } }
public override void RegisterMigrations(DbMigrationSet migrations) { migrations.AddPostUpgradeAction("1.3.0.0", "CreateDefaultServers", "Creates records for popular OAuth servers", session => OAuthServers.CreateUpdatePopularServers(session)); if (!migrations.IsNewInstall()) { migrations.AddPostUpgradeAction("1.3.0.0", "UnencryptOAuthTokens", "Switch tokens to store unencrypted values", session => UnencryptTokens(session)); } }