using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace OTSSignsOrchestrator.Core.Migrations { /// public partial class DropAppSettings : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AppSettings"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AppSettings", columns: table => new { Key = table.Column(type: "TEXT", maxLength: 200, nullable: false), Category = table.Column(type: "TEXT", maxLength: 50, nullable: false), IsSensitive = table.Column(type: "INTEGER", nullable: false), UpdatedAt = table.Column(type: "TEXT", nullable: false), Value = table.Column(type: "TEXT", maxLength: 4000, nullable: true) }, constraints: table => { table.PrimaryKey("PK_AppSettings", x => x.Key); }); migrationBuilder.CreateIndex( name: "IX_AppSettings_Category", table: "AppSettings", column: "Category"); } } }