Database update: Encrypted password

This commit is contained in:
Andre Beging
2022-04-04 10:01:10 +02:00
parent 51088460b4
commit 77382944eb
10 changed files with 202 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FoodsharingSiegen.Server.Migrations
{
public partial class userpw : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "EncryptedPassword",
table: "Users",
type: "TEXT",
nullable: false,
defaultValue: "");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EncryptedPassword",
table: "Users");
}
}
}