server/aspnetapp/Migrations/20220407085751_uporder.cs

(完整代码) 1KB

using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace aspnetapp.Migrations
{
    public partial class uporder : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "order_imageurl",
                table: "Orders",
                newName: "order_showid");

            migrationBuilder.AddColumn<int>(
                name: "order_buildingid",
                table: "Orders",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "order_buildingid",
                table: "Orders");

            migrationBuilder.RenameColumn(
                name: "order_showid",
                table: "Orders",
                newName: "order_imageurl");
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。