All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
30 lines
764 B
C#
30 lines
764 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace agologum_api.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddUserAuthFields : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PasswordHash",
|
|
table: "Users",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "PasswordHash",
|
|
table: "Users");
|
|
}
|
|
}
|
|
}
|