31 lines
831 B
C#
31 lines
831 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace FileShare_EFCore.Migrations.MySQL
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AutoMigration_20260520163216 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "password-hash",
|
|
table: "user",
|
|
type: "varchar(200)",
|
|
maxLength: 200,
|
|
nullable: true,
|
|
comment: "密码哈希值");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "password-hash",
|
|
table: "user");
|
|
}
|
|
}
|
|
}
|