aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Migrations/20221030081459_DeletedAt.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/src/Migrations/20221030081459_DeletedAt.cs')
-rw-r--r--code/api/src/Migrations/20221030081459_DeletedAt.cs146
1 files changed, 146 insertions, 0 deletions
diff --git a/code/api/src/Migrations/20221030081459_DeletedAt.cs b/code/api/src/Migrations/20221030081459_DeletedAt.cs
new file mode 100644
index 0000000..8132a6b
--- /dev/null
+++ b/code/api/src/Migrations/20221030081459_DeletedAt.cs
@@ -0,0 +1,146 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace IOL.GreatOffice.Api.Migrations
+{
+ public partial class DeletedAt : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "users",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "time_labels",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "time_entries",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "time_categories",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "tenants",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "projects",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "project_member",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "project_labels",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "customers",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "customer_groups",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "customer_events",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "customer_contacts",
+ type: "timestamp with time zone",
+ nullable: true);
+
+ migrationBuilder.AddColumn<DateTime>(
+ name: "deleted_at",
+ table: "api_access_tokens",
+ type: "timestamp with time zone",
+ nullable: true);
+ }
+
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "users");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "time_labels");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "time_entries");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "time_categories");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "tenants");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "projects");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "project_member");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "project_labels");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "customers");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "customer_groups");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "customer_events");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "customer_contacts");
+
+ migrationBuilder.DropColumn(
+ name: "deleted_at",
+ table: "api_access_tokens");
+ }
+ }
+}