cf439c5006
continuous-integration/drone/pr Build is passing
Resolved mediator source geenrator conflict with tests
42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace LiteCharms.Features.Postgres.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public sealed partial class Init : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.EnsureSchema(
|
|
name: "security");
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "DataProtectionKeys",
|
|
schema: "security",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<int>(type: "integer", nullable: false)
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
FriendlyName = table.Column<string>(type: "text", nullable: true),
|
|
Xml = table.Column<string>(type: "text", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_DataProtectionKeys", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "DataProtectionKeys",
|
|
schema: "security");
|
|
}
|
|
}
|
|
}
|