35 lines
1.5 KiB
C#
35 lines
1.5 KiB
C#
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<int>(type: "integer", nullable: false)
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
Scheme = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
|
|
DisplayName = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
|
|
Enabled = table.Column<bool>(type: "boolean", nullable: false),
|
|
Type = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
|
|
Properties = table.Column<string>(type: "text", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_IdentityProviders", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "IdentityProviders");
|
|
}
|
|
}
|
|
}
|