feat(data): migrate PR #2332

This commit is contained in:
Azure Pipelines EF Migration Bot 2021-04-24 22:15:57 +00:00 committed by Collin M. Barrett
parent 2c0d2888fd
commit 66e257f4b7
3 changed files with 84261 additions and 1 deletions

View file

@ -0,0 +1,23 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2332 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterLists",
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
values: new object[] { 2474, null, "A list specifically for OISD", null, null, null, "https://github.com/beerisgood/beer_blocklist", "https://github.com/beerisgood/beer_blocklist/issues", 5, "beer_blocklist", null, null, null });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 2474);
}
}
}

View file

@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.4")
.HasAnnotation("ProductVersion", "5.0.5")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Dependent", b =>
@ -19369,6 +19369,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://gitlab.com/curben/phishing-filter/issues",
LicenseId = 8,
Name = "phishing-filter (RPZ)"
},
new
{
Id = 2474,
Description = "A list specifically for OISD",
HomeUrl = "https://github.com/beerisgood/beer_blocklist",
IssuesUrl = "https://github.com/beerisgood/beer_blocklist/issues",
LicenseId = 5,
Name = "beer_blocklist"
});
});