mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2616
This commit is contained in:
parent
84914a4ce7
commit
aafa54531a
3 changed files with 83894 additions and 0 deletions
83649
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211029231847_2616.Designer.cs
generated
Normal file
83649
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211029231847_2616.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,148 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2616 : 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[,]
|
||||
{
|
||||
{ 2539, null, "The family filter for AdGuard Home", null, "contact@ammnt.app", null, "https://ammnt.app/", "https://github.com/AmmoniteFilter/AmmoniteFilter/issues", 4, "AmmoniteFilter", null, null, null },
|
||||
{ 2540, null, "The security filter for AdGuard Home", null, "contact@ammnt.app", null, "https://ammnt.app/", "https://github.com/AmmoniteFilter/TrilobiteFilter/issues", 4, "TrilobiteFilter", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainers",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 166, null, "ammnt", null, "https://github.com/ammnt" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2539, 166 },
|
||||
{ 2540, 166 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2539, 6 },
|
||||
{ 2540, 6 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2539, 2 },
|
||||
{ 2539, 3 },
|
||||
{ 2539, 6 },
|
||||
{ 2539, 7 },
|
||||
{ 2539, 11 },
|
||||
{ 2540, 6 },
|
||||
{ 2540, 7 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2758, 2539, (short)1, "https://ammnt.app/filter.txt" },
|
||||
{ 2759, 2540, (short)1, "https://raw.githubusercontent.com/AmmoniteFilter/TrilobiteFilter/main/filter.txt" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2539, 166 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2540, 166 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2539, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2540, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2539, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2539, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2539, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2539, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2539, 11 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2540, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2540, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2758);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2759);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2539);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2540);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainers",
|
||||
keyColumn: "Id",
|
||||
keyValue: 166);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19195,6 +19195,26 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/iam-py-test/my_filters_001/issues/",
|
||||
LicenseId = 28,
|
||||
Name = "Malicious website blocklist (HOSTS)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2539,
|
||||
Description = "The family filter for AdGuard Home",
|
||||
EmailAddress = "contact@ammnt.app",
|
||||
HomeUrl = "https://ammnt.app/",
|
||||
IssuesUrl = "https://github.com/AmmoniteFilter/AmmoniteFilter/issues",
|
||||
LicenseId = 4,
|
||||
Name = "AmmoniteFilter"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2540,
|
||||
Description = "The security filter for AdGuard Home",
|
||||
EmailAddress = "contact@ammnt.app",
|
||||
HomeUrl = "https://ammnt.app/",
|
||||
IssuesUrl = "https://github.com/AmmoniteFilter/TrilobiteFilter/issues",
|
||||
LicenseId = 4,
|
||||
Name = "TrilobiteFilter"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -31059,6 +31079,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2538,
|
||||
MaintainerId = 165
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539,
|
||||
MaintainerId = 166
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540,
|
||||
MaintainerId = 166
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -41796,6 +41826,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2538,
|
||||
SyntaxId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539,
|
||||
SyntaxId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540,
|
||||
SyntaxId = 6
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -57443,6 +57483,41 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2534,
|
||||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539,
|
||||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539,
|
||||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539,
|
||||
TagId = 11
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540,
|
||||
TagId = 7
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -78533,6 +78608,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://iam-py-test.github.io/my_filters_001/Alternative list formats/antimalware_hosts.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2758,
|
||||
FilterListId = 2539,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://ammnt.app/filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2759,
|
||||
FilterListId = 2540,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/AmmoniteFilter/TrilobiteFilter/main/filter.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -80998,6 +81089,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 165,
|
||||
Name = "iam-py-test",
|
||||
Url = "https://github.com/iam-py-test"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 166,
|
||||
Name = "ammnt",
|
||||
Url = "https://github.com/ammnt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue