2026-05-15 15:26:46 +08:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
2026-05-20 16:40:57 +08:00
|
|
|
|
namespace Avalonia_EFCore.Migrations.PostgreSQL
|
2026-05-15 15:26:46 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <inheritdoc />
|
2026-05-20 16:40:57 +08:00
|
|
|
|
public partial class AutoMigration_20260520163216 : Migration
|
2026-05-15 15:26:46 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.AddColumn<string>(
|
2026-05-20 16:40:57 +08:00
|
|
|
|
name: "password-hash",
|
2026-05-15 15:26:46 +08:00
|
|
|
|
table: "user",
|
2026-05-20 16:40:57 +08:00
|
|
|
|
type: "character varying(200)",
|
|
|
|
|
|
maxLength: 200,
|
2026-05-15 15:26:46 +08:00
|
|
|
|
nullable: true,
|
2026-05-20 16:40:57 +08:00
|
|
|
|
comment: "密码哈希值");
|
2026-05-15 15:26:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
2026-05-20 16:40:57 +08:00
|
|
|
|
name: "password-hash",
|
2026-05-15 15:26:46 +08:00
|
|
|
|
table: "user");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|