Skip to content

Commit

Permalink
Fix(#67) Fix issues with Default User creation date.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkinetic committed Aug 6, 2018
1 parent c7f4186 commit f5629f4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal static void SeedInitialData(ModelBuilder builder, Guid idUser)
Id = idUser,
Username = "admin",
Password = "EDDDFC93F0EBE76F4F79D9C83C298D1126F7F3A01259637AD028607D364FD247",
CreatedOn = DateTime.Now,
CreatedOn = new DateTime(2018, 6, 1),
};

var attributes = new []
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2671,7 +2671,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.InsertData(
table: "webuser",
columns: new[] { "id", "created_on", "is_active", "password", "username" },
values: new object[] { new Guid("f13400a9-70b8-4325-b732-7fe7db72176c"), new DateTime(2018, 8, 2, 12, 37, 17, 659, DateTimeKind.Local), true, "EDDDFC93F0EBE76F4F79D9C83C298D1126F7F3A01259637AD028607D364FD247", "admin" });
values: new object[] { new Guid("f13400a9-70b8-4325-b732-7fe7db72176c"), new DateTime(2018, 6, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), true, "EDDDFC93F0EBE76F4F79D9C83C298D1126F7F3A01259637AD028607D364FD247", "admin" });

migrationBuilder.InsertData(
table: "alarm_panel_type_localization",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3487,7 +3487,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("webuser");
b.HasData(
new { Id = new Guid("f13400a9-70b8-4325-b732-7fe7db72176c"), CreatedOn = new DateTime(2018, 8, 2, 12, 37, 17, 659, DateTimeKind.Local), IsActive = true, Password = "EDDDFC93F0EBE76F4F79D9C83C298D1126F7F3A01259637AD028607D364FD247", Username = "admin" }
new { Id = new Guid("f13400a9-70b8-4325-b732-7fe7db72176c"), CreatedOn = new DateTime(2018, 6, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), IsActive = true, Password = "EDDDFC93F0EBE76F4F79D9C83C298D1126F7F3A01259637AD028607D364FD247", Username = "admin" }
);
});

Expand Down
2 changes: 2 additions & 0 deletions Survi.Prevention.DataLayer/Survi.Prevention.DataLayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<Compile Remove="Migrations\20180802163018_CreateDatabase.cs" />
<Compile Remove="Migrations\20180802163221_CreateDatabase.cs" />
<Compile Remove="Migrations\20180802163444_V2.cs" />
<Compile Remove="Migrations\20180802163718_CreateDatabase.cs" />
<Compile Remove="Migrations\20180802163821_v2.cs" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit f5629f4

Please sign in to comment.