diff options
| author | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
| commit | 3f4c0720e1e3421431e7baa20882a4a4512a7fab (patch) | |
| tree | 734ca81d7d0841d8863e3f523ebba14c282dc681 /src/Migrations/20200207114805_SecondMigration.cs | |
| download | fagprove-master.tar.xz fagprove-master.zip | |
Diffstat (limited to 'src/Migrations/20200207114805_SecondMigration.cs')
| -rw-r--r-- | src/Migrations/20200207114805_SecondMigration.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/Migrations/20200207114805_SecondMigration.cs b/src/Migrations/20200207114805_SecondMigration.cs new file mode 100644 index 0000000..0419b07 --- /dev/null +++ b/src/Migrations/20200207114805_SecondMigration.cs @@ -0,0 +1,54 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace IOL.Fagprove.Migrations +{ + public partial class SecondMigration : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DeleteData( + table: "Users", + keyColumn: "Id", + keyValue: new Guid("d2512ef5-f25e-486d-a94d-1ea43c732195")); + + migrationBuilder.DeleteData( + table: "Users", + keyColumn: "Id", + keyValue: new Guid("e166655c-cbdc-4128-8e0e-9aeb9c52093d")); + + migrationBuilder.InsertData( + table: "Users", + columns: new[] { "Id", "CreatedBy", "CreatedUtc", "Email", "ModifiedBy", "ModifiedUtc", "Name", "Password", "Role" }, + values: new object[] { new Guid("d2c3dc54-2fda-413a-abff-f632f88afe34"), null, new DateTime(2020, 2, 7, 11, 48, 5, 107, DateTimeKind.Utc).AddTicks(9470), "ivar@protektit.no", null, null, "Ivar Løvlie Administrator", "9F267A5EC952ABC97CC5B768AEF42337", 1 }); + + migrationBuilder.InsertData( + table: "Users", + columns: new[] { "Id", "CreatedBy", "CreatedUtc", "Email", "ModifiedBy", "ModifiedUtc", "Name", "Password", "Role" }, + values: new object[] { new Guid("fd0f2341-00fa-4906-8a1a-ba110df9f9a4"), null, new DateTime(2020, 2, 7, 11, 48, 5, 114, DateTimeKind.Utc).AddTicks(1410), "ivarino@protektit.no", null, null, "Ivar Løvlie Standard", "9F267A5EC952ABC97CC5B768AEF42337", 0 }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DeleteData( + table: "Users", + keyColumn: "Id", + keyValue: new Guid("d2c3dc54-2fda-413a-abff-f632f88afe34")); + + migrationBuilder.DeleteData( + table: "Users", + keyColumn: "Id", + keyValue: new Guid("fd0f2341-00fa-4906-8a1a-ba110df9f9a4")); + + migrationBuilder.InsertData( + table: "Users", + columns: new[] { "Id", "CreatedBy", "CreatedUtc", "Email", "ModifiedBy", "ModifiedUtc", "Name", "Password", "Role" }, + values: new object[] { new Guid("d2512ef5-f25e-486d-a94d-1ea43c732195"), null, new DateTime(2020, 2, 5, 23, 30, 13, 316, DateTimeKind.Utc).AddTicks(6060), "ivar@protektit.no", null, null, "Ivar Løvlie Administrator", "9F267A5EC952ABC97CC5B768AEF42337", 1 }); + + migrationBuilder.InsertData( + table: "Users", + columns: new[] { "Id", "CreatedBy", "CreatedUtc", "Email", "ModifiedBy", "ModifiedUtc", "Name", "Password", "Role" }, + values: new object[] { new Guid("e166655c-cbdc-4128-8e0e-9aeb9c52093d"), null, new DateTime(2020, 2, 5, 23, 30, 13, 320, DateTimeKind.Utc).AddTicks(310), "ivarino@protektit.no", null, null, "Ivar Løvlie Standard", "9F267A5EC952ABC97CC5B768AEF42337", 0 }); + } + } +} |
