Database Update
This commit is contained in:
37
FoodsharingSiegen.Server/Migrations/20220401164353_asd.cs
Normal file
37
FoodsharingSiegen.Server/Migrations/20220401164353_asd.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user