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.SQLite
|
2026-05-15 15:26:46 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public partial class AutoMigration_20260515152037 : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
|
|
|
|
name: "phone-number",
|
|
|
|
|
|
table: "user",
|
|
|
|
|
|
type: "TEXT",
|
|
|
|
|
|
maxLength: 50,
|
|
|
|
|
|
nullable: true,
|
|
|
|
|
|
comment: "电话号码");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
|
name: "phone-number",
|
|
|
|
|
|
table: "user");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|