Database Update

This commit is contained in:
Andre Beging
2022-04-02 12:53:49 +02:00
parent d3bc96b745
commit eb4bb402ba
15 changed files with 598 additions and 91 deletions

View File

@@ -0,0 +1,37 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FoodsharingSiegen.Server.Migrations
{
public partial class asd : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "Created",
table: "Prospects",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<string>(
name: "Info",
table: "Interactions",
type: "TEXT",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Created",
table: "Prospects");
migrationBuilder.DropColumn(
name: "Info",
table: "Interactions");
}
}
}