using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CMSMicroservice.Infrastructure.Persistence.Migrations { /// public partial class u13 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ArchivedAt", schema: "CMS", table: "PublicMessages", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "EndDate", schema: "CMS", table: "PublicMessages", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "IsArchived", schema: "CMS", table: "PublicMessages", type: "bit", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "PublishedAt", schema: "CMS", table: "PublicMessages", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "StartDate", schema: "CMS", table: "PublicMessages", type: "datetime2", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ArchivedAt", schema: "CMS", table: "PublicMessages"); migrationBuilder.DropColumn( name: "EndDate", schema: "CMS", table: "PublicMessages"); migrationBuilder.DropColumn( name: "IsArchived", schema: "CMS", table: "PublicMessages"); migrationBuilder.DropColumn( name: "PublishedAt", schema: "CMS", table: "PublicMessages"); migrationBuilder.DropColumn( name: "StartDate", schema: "CMS", table: "PublicMessages"); } } }