using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CMSMicroservice.Infrastructure.Persistence.Migrations { /// public partial class AddAppVersionsTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AppVersions", schema: "CMS", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), AppName = table.Column(type: "nvarchar(max)", nullable: false), CurrentVersion = table.Column(type: "nvarchar(max)", nullable: false), MinRequiredVersion = table.Column(type: "nvarchar(max)", nullable: false), RequiresFullCacheClear = table.Column(type: "bit", nullable: false), UpdateMessage = table.Column(type: "nvarchar(max)", nullable: true), ReleaseNotes = table.Column(type: "nvarchar(max)", nullable: true), IsActive = table.Column(type: "bit", nullable: false), Created = table.Column(type: "datetime2", nullable: false), CreatedBy = table.Column(type: "nvarchar(max)", nullable: true), LastModified = table.Column(type: "datetime2", nullable: true), LastModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { table.PrimaryKey("PK_AppVersions", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AppVersions", schema: "CMS"); } } }