feat(data): migrate PR #3284

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-10-01 14:15:52 +00:00 committed by Collin M. Barrett
parent 8c86704712
commit 7ccfeda251
3 changed files with 89605 additions and 4 deletions

View file

@ -0,0 +1,57 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _3284 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2559L, 2782L },
column: "url",
value: "https://gitlab.com/huzunluartemis/TurkishAdblockList/-/raw/main/src/HostsList.txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2560L, 2783L },
column: "url",
value: "https://gitlab.com/huzunluartemis/TurkishAdblockList/-/raw/main/src/ElementalList.txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2561L, 2784L },
column: "url",
value: "https://gitlab.com/huzunluartemis/TurkishAdblockList/-/raw/main/src/BadIpList.txt");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2559L, 2782L },
column: "url",
value: "https://raw.githubusercontent.com/huzunluartemis/TurkishAdblockList/main/src/HostsList.txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2560L, 2783L },
column: "url",
value: "https://raw.githubusercontent.com/huzunluartemis/TurkishAdblockList/main/src/ElementalList.txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2561L, 2784L },
column: "url",
value: "https://raw.githubusercontent.com/huzunluartemis/TurkishAdblockList/main/src/BadIpList.txt");
}
}
}

View file

@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.8")
.HasAnnotation("ProductVersion", "6.0.9")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
@ -88528,7 +88528,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2782L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/huzunluartemis/TurkishAdblockList/main/src/HostsList.txt"
Url = "https://gitlab.com/huzunluartemis/TurkishAdblockList/-/raw/main/src/HostsList.txt"
},
new
{
@ -88536,7 +88536,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2783L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/huzunluartemis/TurkishAdblockList/main/src/ElementalList.txt"
Url = "https://gitlab.com/huzunluartemis/TurkishAdblockList/-/raw/main/src/ElementalList.txt"
},
new
{
@ -88544,7 +88544,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2784L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/huzunluartemis/TurkishAdblockList/main/src/BadIpList.txt"
Url = "https://gitlab.com/huzunluartemis/TurkishAdblockList/-/raw/main/src/BadIpList.txt"
},
new
{