using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace LiteCharmsSecurity.Admin.EntityFramework.PostgreSQL.Migrations.IdentityServerConfiguration { public partial class UpdateISKeysIDP : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "IdentityProviders", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), Scheme = table.Column(type: "character varying(200)", maxLength: 200, nullable: false), DisplayName = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), Enabled = table.Column(type: "boolean", nullable: false), Type = table.Column(type: "character varying(20)", maxLength: 20, nullable: false), Properties = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityProviders", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "IdentityProviders"); } } }