Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user