From 61aad62d817ddb6494f52a531fccb7e82bcfd13c Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期五, 08 八月 2025 17:39:27 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/ApiFlexJob --- FlexJobApi.Database.Migrations/Migrations/20250808093737_UpdateUser0808.cs | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/20250808093737_UpdateUser0808.cs b/FlexJobApi.Database.Migrations/Migrations/20250808093737_UpdateUser0808.cs new file mode 100644 index 0000000..780946f --- /dev/null +++ b/FlexJobApi.Database.Migrations/Migrations/20250808093737_UpdateUser0808.cs @@ -0,0 +1,56 @@ +锘縰sing System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace FlexJobApi.Database.Migrations.Migrations +{ + /// <inheritdoc /> + public partial class UpdateUser0808 : Migration + { + /// <inheritdoc /> + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn<int>( + name: "Age", + table: "User", + type: "int", + nullable: true); + + migrationBuilder.AddColumn<int>( + name: "Gender", + table: "User", + type: "int", + nullable: true); + + migrationBuilder.AddColumn<string>( + name: "Identity", + table: "User", + type: "nvarchar(max)", + nullable: true); + + migrationBuilder.UpdateData( + table: "User", + keyColumn: "Id", + keyValue: new Guid("11111111-1111-1111-1111-111111111111"), + columns: new[] { "Age", "Gender", "Identity" }, + values: new object[] { null, null, null }); + } + + /// <inheritdoc /> + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Age", + table: "User"); + + migrationBuilder.DropColumn( + name: "Gender", + table: "User"); + + migrationBuilder.DropColumn( + name: "Identity", + table: "User"); + } + } +} -- Gitblit v1.9.1