mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2272
This commit is contained in:
parent
fceaa873bb
commit
99df1914db
3 changed files with 83453 additions and 16 deletions
83405
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210316005654_2272.Designer.cs
generated
Normal file
83405
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210316005654_2272.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,47 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2272 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2528);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2365);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2009,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/YanFung/Ads/master/Mobile");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2009,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/YanFung/Ads/master/Mobile.txt");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterLists",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[] { 2365, null, null, null, null, null, "https://gitee.com/damengzhudamengzhu/guanggaoguolv/", "https://gitee.com/damengzhudamengzhu/guanggaoguolv/issues", null, "jiekouAD", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[] { 2528, 2365, (short)1, "https://gitee.com/damengzhudamengzhu/guanggaoguolv/raw/master/jiekouAD.txt" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -18388,13 +18388,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Name = "ilpl's Ad Hosts"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2365,
|
||||
HomeUrl = "https://gitee.com/damengzhudamengzhu/guanggaoguolv/",
|
||||
IssuesUrl = "https://gitee.com/damengzhudamengzhu/guanggaoguolv/issues",
|
||||
Name = "jiekouAD"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2366,
|
||||
Description = "Some PR-Chinese filterlist makers apparently decided to block Falun Gong websites in their anti-ad lists for reasons that had absolutely nothing to do with ads, tracking or malware, and despite the sites already being megablocked within their country. So if you live abroad, and use any of the affected lists, this list is for you.",
|
||||
|
|
@ -73815,7 +73808,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 1938,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/YanFung/Ads/master/Mobile.txt"
|
||||
Url = "https://raw.githubusercontent.com/YanFung/Ads/master/Mobile"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -77866,14 +77859,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://raw.githubusercontent.com/ilpl/ad-hosts/master/hosts"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2528,
|
||||
FilterListId = 2365,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitee.com/damengzhudamengzhu/guanggaoguolv/raw/master/jiekouAD.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2529,
|
||||
FilterListId = 2366,
|
||||
|
|
|
|||
Loading…
Reference in a new issue