mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Fixing that for existing users LastPasswordChangeUtc being null caused errors
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Orchard.Users {
|
||||
.Column<DateTime>("CreatedUtc")
|
||||
.Column<DateTime>("LastLoginUtc")
|
||||
.Column<DateTime>("LastLogoutUtc")
|
||||
.Column<DateTime>("LastPasswordChangeUtc")
|
||||
.Column<DateTime>("LastPasswordChangeUtc", c => c.WithDefault(DateTime.MinValue))
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("User", cfg => cfg.Creatable(false));
|
||||
@@ -59,7 +59,7 @@ namespace Orchard.Users {
|
||||
public int UpdateFrom4() {
|
||||
SchemaBuilder.AlterTable("UserPartRecord",
|
||||
table => {
|
||||
table.AddColumn<DateTime>("LastPasswordChangeUtc");
|
||||
table.AddColumn<DateTime>("LastPasswordChangeUtc", c => c.WithDefault(DateTime.MinValue));
|
||||
});
|
||||
|
||||
return 5;
|
||||
|
||||
Reference in New Issue
Block a user