mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3892
This commit is contained in:
parent
4fc6466fc0
commit
4d3db6f270
3 changed files with 87947 additions and 0 deletions
87846
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20231106215419_3892.Designer.cs
generated
Normal file
87846
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20231106215419_3892.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,68 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3892 : 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[] { 2662L, null, "My personal blocklist, an extension for known blocklists. Blocks ads, trackers, native device trackers, badware and more. Not intended to be used as a standalone blocklist, it serves as a addition for other blocklists!", null, null, null, "https://codeberg.org/pcm/rublock", true, "https://codeberg.org/pcm/rublock/issues", 8L, "RU BlockList for uBO", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_languages",
|
||||
columns: new[] { "filter_list_id", "language_id" },
|
||||
values: new object[] { 2662L, 132L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2662L, 53L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2662L, 13L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
|
||||
values: new object[] { 2662L, 2941L, (short)1, (short)1, "https://codeberg.org/pcm/rublock/raw/branch/master/all.txt" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_languages",
|
||||
keyColumns: new[] { "filter_list_id", "language_id" },
|
||||
keyValues: new object[] { 2662L, 132L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2662L, 53L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2662L, 13L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2662L, 2941L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2662L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21853,6 +21853,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/Axonym/finnish-annoyances/issues",
|
||||
LicenseId = 11L,
|
||||
Name = "Finnish Annoyances"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2662L,
|
||||
Description = "My personal blocklist, an extension for known blocklists. Blocks ads, trackers, native device trackers, badware and more. Not intended to be used as a standalone blocklist, it serves as a addition for other blocklists!",
|
||||
HomeUrl = "https://codeberg.org/pcm/rublock",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://codeberg.org/pcm/rublock/issues",
|
||||
LicenseId = 8L,
|
||||
Name = "RU BlockList for uBO"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -26209,6 +26219,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2661L,
|
||||
LanguageId = 44L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2662L,
|
||||
LanguageId = 132L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -44396,6 +44411,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2661L,
|
||||
SyntaxId = 4L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2662L,
|
||||
SyntaxId = 53L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -60287,6 +60307,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2661L,
|
||||
TagId = 35L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2662L,
|
||||
TagId = 13L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -87581,6 +87606,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)0,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Axonym/finnish-annoyances/main/annoyances.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2662L,
|
||||
Id = 2941L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)1,
|
||||
Url = "https://codeberg.org/pcm/rublock/raw/branch/master/all.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue