Files
Aberwyn/Aberwyn/Migrations/20250519213736_AddOrderToBudgetCategory.cs
Elias Jansson 3759769ea0
All checks were successful
continuous-integration/drone/push Build is passing
Budget, admin och lite css
2025-05-21 00:13:47 +02:00

60 lines
1.7 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Aberwyn.Migrations
{
public partial class AddOrderToBudgetCategory : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Person",
table: "BudgetItems");
migrationBuilder.AddColumn<int>(
name: "Order",
table: "BudgetPeriods",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "Order",
table: "BudgetItems",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "Order",
table: "BudgetCategories",
type: "int",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Order",
table: "BudgetPeriods");
migrationBuilder.DropColumn(
name: "Order",
table: "BudgetItems");
migrationBuilder.DropColumn(
name: "Order",
table: "BudgetCategories");
migrationBuilder.AddColumn<string>(
name: "Person",
table: "BudgetItems",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
}
}