using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TakeoutSaaS.Infrastructure.Migrations { /// public partial class ChangeStoreQualificationDateColumns : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IssuedAt", table: "store_qualifications", type: "date", nullable: true, comment: "签发日期。", oldClrType: typeof(DateTime), oldType: "timestamp with time zone", oldNullable: true, oldComment: "签发日期。"); migrationBuilder.AlterColumn( name: "ExpiresAt", table: "store_qualifications", type: "date", nullable: true, comment: "到期日期。", oldClrType: typeof(DateTime), oldType: "timestamp with time zone", oldNullable: true, oldComment: "到期日期。"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IssuedAt", table: "store_qualifications", type: "timestamp with time zone", nullable: true, comment: "签发日期。", oldClrType: typeof(DateOnly), oldType: "date", oldNullable: true, oldComment: "签发日期。"); migrationBuilder.AlterColumn( name: "ExpiresAt", table: "store_qualifications", type: "timestamp with time zone", nullable: true, comment: "到期日期。", oldClrType: typeof(DateOnly), oldType: "date", oldNullable: true, oldComment: "到期日期。"); } } }