feat(data): migrate PR #2448

This commit is contained in:
Azure Pipelines EF Migration Bot 2021-07-01 17:48:15 +00:00 committed by Collin M. Barrett
parent 2c79b04923
commit 2f12c2b5d8
3 changed files with 85493 additions and 303 deletions

View file

@ -0,0 +1,343 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2448 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListLanguages",
keyColumns: new[] { "FilterListId", "Iso6391" },
keyValues: new object[] { 1239, "de" });
migrationBuilder.DeleteData(
table: "FilterListLanguages",
keyColumns: new[] { "FilterListId", "Iso6391" },
keyValues: new object[] { 1242, "de" });
migrationBuilder.DeleteData(
table: "FilterListLanguages",
keyColumns: new[] { "FilterListId", "Iso6391" },
keyValues: new object[] { 1242, "en" });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1233, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1234, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1235, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1237, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1238, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1239, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1240, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1241, 110 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1242, 110 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1233, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1234, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1235, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1237, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1238, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1239, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1240, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1241, 2 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 1242, 3 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1233, 26 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1234, 26 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1235, 3 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1237, 7 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1238, 6 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1239, 21 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1240, 1 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1241, 9 });
migrationBuilder.DeleteData(
table: "FilterListTags",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1242, 2 });
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1255);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1256);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1257);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1258);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1259);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1260);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1261);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1262);
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 1263);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1233);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1234);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1235);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1237);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1238);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1239);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1240);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1241);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 1242);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterLists",
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
values: new object[,]
{
{ 1233, null, "To block Adobe Updates (Photoshop & co.)", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - Adobe updates", null, null, null },
{ 1234, null, "To block Nintendo system updates (3DS / Wii U / Switch)", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - Nintendo updates", null, null, null },
{ 1235, null, "To block tracking and information that Windows collects", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - Windows tracking", null, null, null },
{ 1237, null, "Block fake jailbreak websites (Domains of The iPhone Wiki)", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - Fake jailbreak sites", null, null, null },
{ 1238, null, "To block fake gaming websites (fake emulators, etc.)", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - Fake game sites", null, null, null },
{ 1239, null, "To block German fake news websites", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - German fake news", null, null, null },
{ 1240, null, "To block cryptomining", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - Cryptomining", null, null, null },
{ 1241, null, "To block other things that I could not assign anywhere", null, null, null, "https://github.com/Akamaru/Pi-Hole-Lists", "https://github.com/Akamaru/Pi-Hole-Lists/issues", 5, "Pi-Hole-Lists - Other", null, null, null },
{ 1242, null, null, null, null, null, "https://github.com/Akamaru/Adblock-Filterliste", "https://github.com/Akamaru/Adblock-Filterliste/issues", 33, "Aka's Filter Liste", null, null, null }
});
migrationBuilder.InsertData(
table: "FilterListLanguages",
columns: new[] { "FilterListId", "Iso6391" },
values: new object[,]
{
{ 1242, "de" },
{ 1239, "de" },
{ 1242, "en" }
});
migrationBuilder.InsertData(
table: "FilterListMaintainers",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[,]
{
{ 1240, 110 },
{ 1239, 110 },
{ 1238, 110 },
{ 1241, 110 },
{ 1237, 110 },
{ 1233, 110 },
{ 1242, 110 },
{ 1235, 110 },
{ 1234, 110 }
});
migrationBuilder.InsertData(
table: "FilterListSyntaxes",
columns: new[] { "FilterListId", "SyntaxId" },
values: new object[,]
{
{ 1235, 2 },
{ 1240, 2 },
{ 1233, 2 },
{ 1239, 2 },
{ 1242, 3 },
{ 1241, 2 },
{ 1234, 2 },
{ 1237, 2 },
{ 1238, 2 }
});
migrationBuilder.InsertData(
table: "FilterListTags",
columns: new[] { "FilterListId", "TagId" },
values: new object[,]
{
{ 1238, 6 },
{ 1237, 7 },
{ 1233, 26 },
{ 1239, 21 },
{ 1234, 26 },
{ 1235, 3 },
{ 1240, 1 },
{ 1241, 9 },
{ 1242, 2 }
});
migrationBuilder.InsertData(
table: "FilterListViewUrls",
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
values: new object[,]
{
{ 1262, 1241, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/other.txt" },
{ 1259, 1238, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/gamefake.txt" },
{ 1260, 1239, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/fakenewsde.txt" },
{ 1258, 1237, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/jbfake.txt" },
{ 1257, 1235, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/nomsdata.txt" },
{ 1256, 1234, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/nintendoblock.txt" },
{ 1255, 1233, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/adobeblock.txt" },
{ 1261, 1240, (short)1, "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/cryptomine.txt" },
{ 1263, 1242, (short)1, "https://raw.githubusercontent.com/Akamaru/Adblock-Filterliste/master/filterlist.txt" }
});
}
}
}

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.6")
.HasAnnotation("ProductVersion", "5.0.7")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Dependent", b =>
@ -8754,86 +8754,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Name = "uBlockFiltersPlus (Domains)"
},
new
{
Id = 1233,
Description = "To block Adobe Updates (Photoshop & co.)",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - Adobe updates"
},
new
{
Id = 1234,
Description = "To block Nintendo system updates (3DS / Wii U / Switch)",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - Nintendo updates"
},
new
{
Id = 1235,
Description = "To block tracking and information that Windows collects",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - Windows tracking"
},
new
{
Id = 1237,
Description = "Block fake jailbreak websites (Domains of The iPhone Wiki)",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - Fake jailbreak sites"
},
new
{
Id = 1238,
Description = "To block fake gaming websites (fake emulators, etc.)",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - Fake game sites"
},
new
{
Id = 1239,
Description = "To block German fake news websites",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - German fake news"
},
new
{
Id = 1240,
Description = "To block cryptomining",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - Cryptomining"
},
new
{
Id = 1241,
Description = "To block other things that I could not assign anywhere",
HomeUrl = "https://github.com/Akamaru/Pi-Hole-Lists",
IssuesUrl = "https://github.com/Akamaru/Pi-Hole-Lists/issues",
LicenseId = 5,
Name = "Pi-Hole-Lists - Other"
},
new
{
Id = 1242,
HomeUrl = "https://github.com/Akamaru/Adblock-Filterliste",
IssuesUrl = "https://github.com/Akamaru/Adblock-Filterliste/issues",
LicenseId = 33,
Name = "Aka's Filter Liste"
},
new
{
Id = 1243,
HomeUrl = "https://github.com/deathbybandaid/piholeparser",
@ -22550,21 +22470,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Iso6391 = "ko"
},
new
{
FilterListId = 1239,
Iso6391 = "de"
},
new
{
FilterListId = 1242,
Iso6391 = "de"
},
new
{
FilterListId = 1242,
Iso6391 = "en"
},
new
{
FilterListId = 1279,
Iso6391 = "pl"
@ -28437,51 +28342,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
MaintainerId = 109
},
new
{
FilterListId = 1233,
MaintainerId = 110
},
new
{
FilterListId = 1234,
MaintainerId = 110
},
new
{
FilterListId = 1235,
MaintainerId = 110
},
new
{
FilterListId = 1237,
MaintainerId = 110
},
new
{
FilterListId = 1238,
MaintainerId = 110
},
new
{
FilterListId = 1239,
MaintainerId = 110
},
new
{
FilterListId = 1240,
MaintainerId = 110
},
new
{
FilterListId = 1241,
MaintainerId = 110
},
new
{
FilterListId = 1242,
MaintainerId = 110
},
new
{
FilterListId = 1243,
MaintainerId = 109
@ -36829,51 +36689,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
SyntaxId = 2
},
new
{
FilterListId = 1233,
SyntaxId = 2
},
new
{
FilterListId = 1234,
SyntaxId = 2
},
new
{
FilterListId = 1235,
SyntaxId = 2
},
new
{
FilterListId = 1237,
SyntaxId = 2
},
new
{
FilterListId = 1238,
SyntaxId = 2
},
new
{
FilterListId = 1239,
SyntaxId = 2
},
new
{
FilterListId = 1240,
SyntaxId = 2
},
new
{
FilterListId = 1241,
SyntaxId = 2
},
new
{
FilterListId = 1242,
SyntaxId = 3
},
new
{
FilterListId = 1243,
SyntaxId = 2
@ -49361,51 +49176,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
TagId = 2
},
new
{
FilterListId = 1233,
TagId = 26
},
new
{
FilterListId = 1234,
TagId = 26
},
new
{
FilterListId = 1235,
TagId = 3
},
new
{
FilterListId = 1237,
TagId = 7
},
new
{
FilterListId = 1238,
TagId = 6
},
new
{
FilterListId = 1239,
TagId = 21
},
new
{
FilterListId = 1240,
TagId = 1
},
new
{
FilterListId = 1241,
TagId = 9
},
new
{
FilterListId = 1242,
TagId = 2
},
new
{
FilterListId = 1243,
TagId = 6
@ -68854,78 +68624,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Url = "https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/uBlockFiltersPlus.txt"
},
new
{
Id = 1255,
FilterListId = 1233,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/adobeblock.txt"
},
new
{
Id = 1256,
FilterListId = 1234,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/nintendoblock.txt"
},
new
{
Id = 1257,
FilterListId = 1235,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/nomsdata.txt"
},
new
{
Id = 1258,
FilterListId = 1237,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/jbfake.txt"
},
new
{
Id = 1259,
FilterListId = 1238,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/gamefake.txt"
},
new
{
Id = 1260,
FilterListId = 1239,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/fakenewsde.txt"
},
new
{
Id = 1261,
FilterListId = 1240,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/cryptomine.txt"
},
new
{
Id = 1262,
FilterListId = 1241,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/other.txt"
},
new
{
Id = 1263,
FilterListId = 1242,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Akamaru/Adblock-Filterliste/master/filterlist.txt"
},
new
{
Id = 1264,
FilterListId = 1243,