using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TakeoutSaaS.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class ChangeTenantPackageDefaults : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "PublishStatus",
                table: "tenant_packages",
                type: "integer",
                nullable: false,
                defaultValue: 0,
                comment: "发布状态：0=草稿，1=已发布。",
                oldClrType: typeof(int),
                oldType: "integer",
                oldDefaultValue: 1,
                oldComment: "发布状态：0=草稿，1=已发布。");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "PublishStatus",
                table: "tenant_packages",
                type: "integer",
                nullable: false,
                defaultValue: 1,
                comment: "发布状态：0=草稿，1=已发布。",
                oldClrType: typeof(int),
                oldType: "integer",
                oldDefaultValue: 0,
                oldComment: "发布状态：0=草稿，1=已发布。");
        }
    }
}
