feat(data): migrate PR #4019

This commit is contained in:
Azure Pipelines EF Migration Bot 2024-01-04 23:52:40 +00:00 committed by Collin Barrett
parent b4044e01c0
commit ab2cc6480b
3 changed files with 87920 additions and 0 deletions

View file

@ -0,0 +1,38 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _4019 : 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[] { 2663L, null, "This robust filter is meticulously designed to fortify your online privacy by intercepting and blocking a wide array of trackers, web analytics tools, and data collectors, ensuring a more secure and confidential browsing experience. Stay protected and in control of your digital footprint with this comprehensive shield against intrusive tracking mechanisms.", null, null, null, "https://github.com/complexorganizations/content-blocker", true, "https://github.com/complexorganizations/content-blocker/issues", 2L, "Content Blocker - Advanced Tracker and Analytics Blocker", null, null, null });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
values: new object[] { 2663L, 2942L, (short)1, (short)1, "https://raw.githubusercontent.com/complexorganizations/content-blocker/main/assets/hosts" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2663L, 2942L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2663L);
}
}
}

View file

@ -21863,6 +21863,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://codeberg.org/pcm/rublock/issues",
LicenseId = 8L,
Name = "RU BlockList for uBO"
},
new
{
Id = 2663L,
Description = "This robust filter is meticulously designed to fortify your online privacy by intercepting and blocking a wide array of trackers, web analytics tools, and data collectors, ensuring a more secure and confidential browsing experience. Stay protected and in control of your digital footprint with this comprehensive shield against intrusive tracking mechanisms.",
HomeUrl = "https://github.com/complexorganizations/content-blocker",
IsApproved = true,
IssuesUrl = "https://github.com/complexorganizations/content-blocker/issues",
LicenseId = 2L,
Name = "Content Blocker - Advanced Tracker and Analytics Blocker"
});
});
@ -87614,6 +87624,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)1,
Url = "https://codeberg.org/pcm/rublock/raw/branch/master/all.txt"
},
new
{
FilterListId = 2663L,
Id = 2942L,
Primariness = (short)1,
SegmentNumber = (short)1,
Url = "https://raw.githubusercontent.com/complexorganizations/content-blocker/main/assets/hosts"
});
});