mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3389
This commit is contained in:
parent
c6c5f4983d
commit
f4c786da1e
3 changed files with 90145 additions and 39 deletions
89879
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230116201943_3389.Designer.cs
generated
Normal file
89879
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230116201943_3389.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,227 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _3389 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2802L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2803L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2804L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2805L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2807L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2808L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2732L },
|
||||
column: "url",
|
||||
value: "https://easydutch-ubo.github.io/EasyDutchCDN/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2798L },
|
||||
column: "url",
|
||||
value: "https://cdn.statically.io/gh/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2799L },
|
||||
column: "url",
|
||||
value: "https://cdn.jsdelivr.net/gh/EasyDutch-uBO/EasyDutch@gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2800L },
|
||||
column: "url",
|
||||
value: "https://combinatronics.io/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2801L },
|
||||
column: "url",
|
||||
value: "https://cdn.statically.io/gh/EasyDutch-uBO/EasyDutchCDN/main/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2806L },
|
||||
columns: new[] { "primariness", "url" },
|
||||
values: new object[] { (short)2, "https://cdn.statically.io/gh/BPower0036/AdBlockfilters/main/dynamic rules" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2809L },
|
||||
column: "primariness",
|
||||
value: (short)2);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2810L },
|
||||
columns: new[] { "primariness", "url" },
|
||||
values: new object[] { (short)3, "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/my filters" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2811L },
|
||||
columns: new[] { "primariness", "url" },
|
||||
values: new object[] { (short)4, "https://combinatronics.io/BPower0036/AdBlockfilters/main/my filters" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2471L, 2802L, (short)7, "https://cdn.jsdelivr.net/gh/EasyDutch-uBO/EasyDutchCDN@main/EasyDutch.txt" },
|
||||
{ 2471L, 2803L, (short)8, "https://combinatronics.io/EasyDutch-uBO/EasyDutchCDN/main/EasyDutch.txt" },
|
||||
{ 2471L, 2804L, (short)9, "https://raw.githubusercontent.com/BPower0036/AdBlockFilters/main/EasyDutch.txt" },
|
||||
{ 2471L, 2805L, (short)10, "https://cdn.statically.io/gh/BPower0036/AdBlockFilters/main/EasyDutch.txt" },
|
||||
{ 2520L, 2807L, (short)3, "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/dynamic rules" },
|
||||
{ 2520L, 2808L, (short)4, "https://combinatronics.io/BPower0036/AdBlockfilters/main/dynamic rules" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2802L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2803L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2804L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2805L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2807L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2808L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2732L },
|
||||
column: "url",
|
||||
value: "https://gitlab.com/BPower0036/EasyDutch/-/raw/gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2798L },
|
||||
column: "url",
|
||||
value: "https://combinatronics.io/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2799L },
|
||||
column: "url",
|
||||
value: "https://cdn.statically.io/gh/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2800L },
|
||||
column: "url",
|
||||
value: "https://cdn.statically.io/gl/BPower0036/EasyDutch/raw/gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2471L, 2801L },
|
||||
column: "url",
|
||||
value: "https://cdn.jsdelivr.net/gh/EasyDutch-uBO/EasyDutch@gh-pages/EasyDutch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2520L, 2806L },
|
||||
columns: new[] { "primariness", "url" },
|
||||
values: new object[] { (short)6, "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/dynamic rules" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2809L },
|
||||
column: "primariness",
|
||||
value: (short)4);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2810L },
|
||||
columns: new[] { "primariness", "url" },
|
||||
values: new object[] { (short)5, "https://cdn.statically.io/gl/BPower0036/AdBlockFilters/main/my filters" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2521L, 2811L },
|
||||
columns: new[] { "primariness", "url" },
|
||||
values: new object[] { (short)6, "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/my filters" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2520L, 2802L, (short)2, (short)0, "https://gitlab.com/BPower0036/AdBlockFilters/-/raw/main/dynamic rules" },
|
||||
{ 2520L, 2803L, (short)3, (short)0, "https://combinatronics.io/BPower0036/AdBlockfilters/main/dynamic rules" },
|
||||
{ 2520L, 2804L, (short)4, (short)0, "https://cdn.statically.io/gh/BPower0036/AdBlockfilters/main/dynamic rules" },
|
||||
{ 2520L, 2805L, (short)5, (short)0, "https://cdn.statically.io/gl/BPower0036/AdBlockFilters/main/dynamic rules" },
|
||||
{ 2521L, 2807L, (short)2, (short)0, "https://gitlab.com/BPower0036/AdBlockFilters/-/raw/main/my filters" },
|
||||
{ 2521L, 2808L, (short)3, (short)0, "https://combinatronics.io/BPower0036/AdBlockfilters/main/my filters" }
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -88271,7 +88271,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2732L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/BPower0036/EasyDutch/-/raw/gh-pages/EasyDutch.txt"
|
||||
Url = "https://easydutch-ubo.github.io/EasyDutchCDN/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -88799,7 +88799,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2798L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://combinatronics.io/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt"
|
||||
Url = "https://cdn.statically.io/gh/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -88807,7 +88807,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2799L,
|
||||
Primariness = (short)4,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt"
|
||||
Url = "https://cdn.jsdelivr.net/gh/EasyDutch-uBO/EasyDutch@gh-pages/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -88815,7 +88815,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2800L,
|
||||
Primariness = (short)5,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/BPower0036/EasyDutch/raw/gh-pages/EasyDutch.txt"
|
||||
Url = "https://combinatronics.io/EasyDutch-uBO/EasyDutch/gh-pages/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -88823,69 +88823,69 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2801L,
|
||||
Primariness = (short)6,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.jsdelivr.net/gh/EasyDutch-uBO/EasyDutch@gh-pages/EasyDutch.txt"
|
||||
Url = "https://cdn.statically.io/gh/EasyDutch-uBO/EasyDutchCDN/main/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520L,
|
||||
FilterListId = 2471L,
|
||||
Id = 2802L,
|
||||
Primariness = (short)2,
|
||||
Primariness = (short)7,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/BPower0036/AdBlockFilters/-/raw/main/dynamic rules"
|
||||
Url = "https://cdn.jsdelivr.net/gh/EasyDutch-uBO/EasyDutchCDN@main/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520L,
|
||||
FilterListId = 2471L,
|
||||
Id = 2803L,
|
||||
Primariness = (short)3,
|
||||
Primariness = (short)8,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://combinatronics.io/BPower0036/AdBlockfilters/main/dynamic rules"
|
||||
Url = "https://combinatronics.io/EasyDutch-uBO/EasyDutchCDN/main/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2471L,
|
||||
Id = 2804L,
|
||||
Primariness = (short)9,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/BPower0036/AdBlockFilters/main/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2471L,
|
||||
Id = 2805L,
|
||||
Primariness = (short)10,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/BPower0036/AdBlockFilters/main/EasyDutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520L,
|
||||
Id = 2804L,
|
||||
Primariness = (short)4,
|
||||
Id = 2806L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/BPower0036/AdBlockfilters/main/dynamic rules"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520L,
|
||||
Id = 2805L,
|
||||
Primariness = (short)5,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/BPower0036/AdBlockFilters/main/dynamic rules"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520L,
|
||||
Id = 2806L,
|
||||
Primariness = (short)6,
|
||||
Id = 2807L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/dynamic rules"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2521L,
|
||||
Id = 2807L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/BPower0036/AdBlockFilters/-/raw/main/my filters"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2521L,
|
||||
FilterListId = 2520L,
|
||||
Id = 2808L,
|
||||
Primariness = (short)3,
|
||||
Primariness = (short)4,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://combinatronics.io/BPower0036/AdBlockfilters/main/my filters"
|
||||
Url = "https://combinatronics.io/BPower0036/AdBlockfilters/main/dynamic rules"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2521L,
|
||||
Id = 2809L,
|
||||
Primariness = (short)4,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/BPower0036/AdBlockfilters/main/my filters"
|
||||
},
|
||||
|
|
@ -88893,17 +88893,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2521L,
|
||||
Id = 2810L,
|
||||
Primariness = (short)5,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/BPower0036/AdBlockFilters/main/my filters"
|
||||
Url = "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/my filters"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2521L,
|
||||
Id = 2811L,
|
||||
Primariness = (short)6,
|
||||
Primariness = (short)4,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/my filters"
|
||||
Url = "https://combinatronics.io/BPower0036/AdBlockfilters/main/my filters"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue