30 lines
891 B
C#
30 lines
891 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ExpenseTracker.Api.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddAutreCategory : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.InsertData(
|
|
table: "categories",
|
|
columns: new[] { "id", "color", "name" },
|
|
values: new object[] { new Guid("10000000-0000-0000-0000-000000000017"), "#6b7280", "Autre" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "categories",
|
|
keyColumn: "id",
|
|
keyValue: new Guid("10000000-0000-0000-0000-000000000017"));
|
|
}
|
|
}
|
|
}
|