using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Start.Server.Data.Migrations { public partial class dotnet6_upgrade : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Keys", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), Version = table.Column(type: "INTEGER", nullable: false), Created = table.Column(type: "TEXT", nullable: false), Use = table.Column(type: "TEXT", nullable: true), Algorithm = table.Column(type: "TEXT", maxLength: 100, nullable: false), IsX509Certificate = table.Column(type: "INTEGER", nullable: false), DataProtected = table.Column(type: "INTEGER", nullable: false), Data = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Keys", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_PersistedGrants_ConsumedTime", table: "PersistedGrants", column: "ConsumedTime"); migrationBuilder.CreateIndex( name: "IX_Keys_Use", table: "Keys", column: "Use"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Keys"); migrationBuilder.DropIndex( name: "IX_PersistedGrants_ConsumedTime", table: "PersistedGrants"); } } }