mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3435
This commit is contained in:
parent
5475fab978
commit
41cf4dd617
3 changed files with 90127 additions and 7 deletions
90046
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230217223539_3435.Designer.cs
generated
Normal file
90046
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230217223539_3435.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,74 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3435 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2290L, 2435L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/liamengland1/miscfilters/master/antipaywall.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2291L, 2436L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/liamengland1/mischosts/master/blacklist");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2290L,
|
||||
columns: new[] { "home_url", "issues_url" },
|
||||
values: new object[] { "https://github.com/liamengland1/miscfilters", "https://github.com/liamengland1/miscfilters/issues" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2291L,
|
||||
columns: new[] { "home_url", "issues_url" },
|
||||
values: new object[] { "https://github.com/liamengland1/mischosts", "https://github.com/liamengland1/mischosts/issues" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2290L, 2435L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/llacb47/miscfilters/master/antipaywall.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2291L, 2436L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/llacb47/mischosts/master/blacklist");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2290L,
|
||||
columns: new[] { "home_url", "issues_url" },
|
||||
values: new object[] { "https://github.com/llacb47/miscfilters", "https://github.com/llacb47/miscfilters/issues" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2291L,
|
||||
columns: new[] { "home_url", "issues_url" },
|
||||
values: new object[] { "https://github.com/llacb47/mischosts", "https://github.com/llacb47/mischosts/issues" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.10")
|
||||
.HasAnnotation("ProductVersion", "7.0.3")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
|
||||
|
|
@ -18864,18 +18864,18 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
Id = 2290L,
|
||||
Description = "Filters to defuse paywalls, subscription/newsletter nags, annoying modals, anti-adblock, and empty ad spaces on news websites",
|
||||
HomeUrl = "https://github.com/llacb47/miscfilters",
|
||||
HomeUrl = "https://github.com/liamengland1/miscfilters",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/llacb47/miscfilters/issues",
|
||||
IssuesUrl = "https://github.com/liamengland1/miscfilters/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "Anti-paywall filters"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2291L,
|
||||
HomeUrl = "https://github.com/llacb47/mischosts",
|
||||
HomeUrl = "https://github.com/liamengland1/mischosts",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/llacb47/mischosts/issues",
|
||||
IssuesUrl = "https://github.com/liamengland1/mischosts/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "llacb47's Blacklist"
|
||||
},
|
||||
|
|
@ -86197,7 +86197,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2435L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/llacb47/miscfilters/master/antipaywall.txt"
|
||||
Url = "https://raw.githubusercontent.com/liamengland1/miscfilters/master/antipaywall.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -86205,7 +86205,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2436L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/llacb47/mischosts/master/blacklist"
|
||||
Url = "https://raw.githubusercontent.com/liamengland1/mischosts/master/blacklist"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue