aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/Migrations/20210522165932_RenameNoteToDescription.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-10-05 14:45:21 +0200
committerivarlovlie <git@ivarlovlie.no>2022-10-05 14:45:21 +0200
commitb7e39b59fd0fc7b5610ebff29035bf622079e0d8 (patch)
tree64be84ebbdac9f7ceced983390c53b10d575af5c /server/src/Migrations/20210522165932_RenameNoteToDescription.cs
parent2001c035fbb417ab0a3d42cfb04d17420bde4086 (diff)
downloadgreatoffice-b7e39b59fd0fc7b5610ebff29035bf622079e0d8.tar.xz
greatoffice-b7e39b59fd0fc7b5610ebff29035bf622079e0d8.zip
refactor: Change file structure
Diffstat (limited to 'server/src/Migrations/20210522165932_RenameNoteToDescription.cs')
-rw-r--r--server/src/Migrations/20210522165932_RenameNoteToDescription.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/server/src/Migrations/20210522165932_RenameNoteToDescription.cs b/server/src/Migrations/20210522165932_RenameNoteToDescription.cs
deleted file mode 100644
index e5bae54..0000000
--- a/server/src/Migrations/20210522165932_RenameNoteToDescription.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace IOL.GreatOffice.Api.Migrations
-{
- public partial class RenameNoteToDescription : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DeleteData(
- table: "users",
- keyColumn: "id",
- keyValue: new Guid("784938f0-cc0e-46ec-afa6-fc60b47b28db"));
-
- migrationBuilder.RenameColumn(
- name: "note",
- table: "time_entries",
- newName: "description");
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.RenameColumn(
- name: "description",
- table: "time_entries",
- newName: "note");
-
- migrationBuilder.InsertData(
- table: "users",
- columns: new[] { "id", "created", "password", "username" },
- values: new object[] { new Guid("784938f0-cc0e-46ec-afa6-fc60b47b28db"), new DateTime(2021, 5, 17, 20, 21, 14, 827, DateTimeKind.Utc).AddTicks(4868), "AAAAAAEAACcQAAAAEJdtrX3pEeIbcgY+BDAr56gvfbc420ag1TllA0cK6Q6Gw3+gGDIQtYIZnisW3dmqaQ==", "admin@ivarlovlie.no" });
- }
- }
-}