mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #4111
This commit is contained in:
parent
d585d570a3
commit
cdacd4dbd6
3 changed files with 88245 additions and 0 deletions
88158
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20240212001818_4111.Designer.cs
generated
Normal file
88158
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20240212001818_4111.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,58 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _4111 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_lists",
|
||||
columns: new[] { "id", "chat_url", "description", "donate_url", "email_address", "forum_url", "home_url", "is_approved", "issues_url", "license_id", "name", "onion_url", "policy_url", "submission_url" },
|
||||
values: new object[] { 2669L, null, "Filter of malicious web resources (phishing, online fraud, malware, etc.) targeting Ukrainian citizens", "https://www.paypal.com/donate/?hosted_button_id=AQ9BB34WHFADC", null, null, "https://github.com/braveinnovators/ukrainian-security-filter", true, "https://github.com/braveinnovators/ukrainian-security-filter/issues", 4L, "Ukrainian Security Filter", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2669L, 3L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2669L, 7L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 2669L, 2953L, (short)1, "https://raw.githubusercontent.com/braveinnovators/ukrainian-security-filter/main/lists/adblock.txt" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2669L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2669L, 7L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2669L, 2953L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2669L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21933,6 +21933,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/DandelionSprout/adfilt/issues",
|
||||
LicenseId = 35L,
|
||||
Name = "Anti-'Stock vector art on copypaste backgrounds'"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2669L,
|
||||
Description = "Filter of malicious web resources (phishing, online fraud, malware, etc.) targeting Ukrainian citizens",
|
||||
DonateUrl = "https://www.paypal.com/donate/?hosted_button_id=AQ9BB34WHFADC",
|
||||
HomeUrl = "https://github.com/braveinnovators/ukrainian-security-filter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/braveinnovators/ukrainian-security-filter/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "Ukrainian Security Filter"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -44581,6 +44592,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2668L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2669L,
|
||||
SyntaxId = 3L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -60507,6 +60523,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2668L,
|
||||
TagId = 15L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2669L,
|
||||
TagId = 7L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -87897,6 +87918,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/DandelionSprout/adfilt/-/raw/master/Sensitive lists/Anti-'StockVectorArtOnCopypasteBackgrounds'.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2669L,
|
||||
Id = 2953L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/braveinnovators/ukrainian-security-filter/main/lists/adblock.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue