mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #4304
This commit is contained in:
parent
579e974e67
commit
7d35e39f13
3 changed files with 88396 additions and 3 deletions
88347
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20240526204210_4304.Designer.cs
generated
Normal file
88347
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20240526204210_4304.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,46 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _4304 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2603L, 2867L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/bpc-clone/bypass-paywalls-clean-filters/main/bpc-paywall-filter.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2603L,
|
||||
columns: new[] { "description", "home_url" },
|
||||
values: new object[] { "Filters for news sites (supports less sites than the extension/add-on)", "https://github.com/bpc-clone/bypass-paywalls-clean-filters" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2603L, 2867L },
|
||||
column: "url",
|
||||
value: "https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters/-/raw/main/bpc-paywall-filter.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2603L,
|
||||
columns: new[] { "description", "home_url" },
|
||||
values: new object[] { "Adblocker list (experimental) which allows you to read articles from (supported) sites that implement a paywall. For some sites it will log you out (or block you to log in); caused by removing cookies or blocking general paywall-scripts. Disclaimer: the list doesn't support as many sites as the extension/add-on though.", "https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21268,8 +21268,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2603L,
|
||||
Description = "Adblocker list (experimental) which allows you to read articles from (supported) sites that implement a paywall. For some sites it will log you out (or block you to log in); caused by removing cookies or blocking general paywall-scripts. Disclaimer: the list doesn't support as many sites as the extension/add-on though.",
|
||||
HomeUrl = "https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters",
|
||||
Description = "Filters for news sites (supports less sites than the extension/add-on)",
|
||||
HomeUrl = "https://github.com/bpc-clone/bypass-paywalls-clean-filters",
|
||||
IsApproved = true,
|
||||
LicenseId = 0L,
|
||||
Name = "Bypass Paywalls Clean filter"
|
||||
|
|
@ -87410,7 +87410,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2867L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters/-/raw/main/bpc-paywall-filter.txt"
|
||||
Url = "https://raw.githubusercontent.com/bpc-clone/bypass-paywalls-clean-filters/main/bpc-paywall-filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue