From 135252d8e849e0ffd75baa22c02575c1f323639a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Mon, 20 Jan 2025 18:13:29 +0100 Subject: [PATCH] #487 - Add schema to table operations --- ...20240902083923_ExpenseTemplateCreateDeleteDate.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Money.Models.EntityFrameworkCore/Migrations/20240902083923_ExpenseTemplateCreateDeleteDate.cs b/src/Money.Models.EntityFrameworkCore/Migrations/20240902083923_ExpenseTemplateCreateDeleteDate.cs index 7a913ace..54891be7 100644 --- a/src/Money.Models.EntityFrameworkCore/Migrations/20240902083923_ExpenseTemplateCreateDeleteDate.cs +++ b/src/Money.Models.EntityFrameworkCore/Migrations/20240902083923_ExpenseTemplateCreateDeleteDate.cs @@ -15,16 +15,19 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.AddColumn( name: "CreatedAt", table: "ExpenseTemplates", + schema: Schema.Name, nullable: true); migrationBuilder.AddColumn( name: "DeletedAt", table: "ExpenseTemplates", + schema: Schema.Name, nullable: true); migrationBuilder.AddColumn( name: "IsDeleted", table: "ExpenseTemplates", + schema: Schema.Name, nullable: false, defaultValue: false); } @@ -34,15 +37,18 @@ protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "CreatedAt", - table: "ExpenseTemplates"); + table: "ExpenseTemplates", + schema: Schema.Name); migrationBuilder.DropColumn( name: "DeletedAt", - table: "ExpenseTemplates"); + table: "ExpenseTemplates", + schema: Schema.Name); migrationBuilder.DropColumn( name: "IsDeleted", - table: "ExpenseTemplates"); + table: "ExpenseTemplates", + schema: Schema.Name); } } }