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( name: "deleted_at", table: "users", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "time_labels", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "time_entries", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "time_categories", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "tenants", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "projects", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "project_member", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "project_labels", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "customers", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "customer_groups", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "customer_events", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "deleted_at", table: "customer_contacts", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( 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"); } } }