Skip to content

Commit

Permalink
#487 - Add schema to table operations
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Jan 20, 2025
1 parent f838b65 commit 135252d
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.AddColumn<DateTime>(
name: "CreatedAt",
table: "ExpenseTemplates",
schema: Schema.Name,
nullable: true);

migrationBuilder.AddColumn<DateTime>(
name: "DeletedAt",
table: "ExpenseTemplates",
schema: Schema.Name,
nullable: true);

migrationBuilder.AddColumn<bool>(
name: "IsDeleted",
table: "ExpenseTemplates",
schema: Schema.Name,
nullable: false,
defaultValue: false);
}
Expand All @@ -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);
}
}
}

0 comments on commit 135252d

Please sign in to comment.