mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3805
This commit is contained in:
parent
4a441d4b6d
commit
ca02d0f48c
3 changed files with 87892 additions and 38 deletions
87813
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230825224322_3805.Designer.cs
generated
Normal file
87813
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230825224322_3805.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,79 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3805 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_languages",
|
||||
keyColumns: new[] { "filter_list_id", "language_id" },
|
||||
keyValues: new object[] { 767L, 37L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_languages",
|
||||
keyColumns: new[] { "filter_list_id", "language_id" },
|
||||
keyValues: new object[] { 767L, 179L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 767L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 767L, 2L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 767L, 798L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 767L);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(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[] { 767L, null, "Rules contributed by diligent owls.", null, null, null, "https://github.com/OwlStudioCN/owl-abp-rules", true, "https://github.com/OwlStudioCN/owl-abp-rules/issues", 8L, "OwlStudio ABP Rules", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_languages",
|
||||
columns: new[] { "filter_list_id", "language_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 767L, 37L },
|
||||
{ 767L, 179L }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 767L, 3L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 767L, 2L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 767L, 798L, (short)1, "https://raw.githubusercontent.com/OwlStudioCN/owl-abp-rules/master/owl-abp-rules.txt" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5711,16 +5711,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Name = "lilydjwg's rules"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 767L,
|
||||
Description = "Rules contributed by diligent owls.",
|
||||
HomeUrl = "https://github.com/OwlStudioCN/owl-abp-rules",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/OwlStudioCN/owl-abp-rules/issues",
|
||||
LicenseId = 8L,
|
||||
Name = "OwlStudio ABP Rules"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 769L,
|
||||
Description = "A filter list for Adblock Plus for remove all newsletters banners",
|
||||
|
|
@ -23106,16 +23096,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
LanguageId = 179L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 767L,
|
||||
LanguageId = 37L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 767L,
|
||||
LanguageId = 179L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 769L,
|
||||
LanguageId = 47L
|
||||
|
|
@ -36303,11 +36283,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 767L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 769L,
|
||||
SyntaxId = 3L
|
||||
|
|
@ -48439,11 +48414,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
TagId = 2L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 767L,
|
||||
TagId = 2L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 769L,
|
||||
TagId = 28L
|
||||
|
|
@ -72309,14 +72279,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://raw.githubusercontent.com/lilydjwg/abp-rules/master/list.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 767L,
|
||||
Id = 798L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/OwlStudioCN/owl-abp-rules/master/owl-abp-rules.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 769L,
|
||||
Id = 799L,
|
||||
|
|
|
|||
Loading…
Reference in a new issue