mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2452
This commit is contained in:
parent
8627dfeed1
commit
ad17b7cca7
3 changed files with 85658 additions and 0 deletions
85506
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210706210228_2452.Designer.cs
generated
Normal file
85506
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210706210228_2452.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,97 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2452 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterLists",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[] { 2513, null, "Blocks copycat, scam and fake domains that imitate other well-known websites, for various reasons.", null, null, null, "https://github.com/DRSDavidSoft/additional-hosts", "https://github.com/DRSDavidSoft/additional-hosts/issues", 2, "Additional Hosts - Fake domains", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainers",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 161, "david@refoua.me", "DRS David Soft", "drsdavidsoft", "https://github.com/DRSDavidSoft/" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1896, 161 },
|
||||
{ 1897, 161 },
|
||||
{ 2513, 161 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2513, 2 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2513, 6 },
|
||||
{ 2513, 7 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[] { 2725, 2513, (short)1, "https://raw.githubusercontent.com/DRSDavidSoft/additional-hosts/master/domains/blacklist/fake-domains.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 1896, 161 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 1897, 161 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2513, 161 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2513, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2513, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2513, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2725);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2513);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainers",
|
||||
keyColumn: "Id",
|
||||
keyValue: 161);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19651,6 +19651,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/DandelionSprout/adfilt/discussions/163",
|
||||
LicenseId = 35,
|
||||
Name = "Actually Legitimate URL Shortener Tool - Affiliate tag allowlist"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2513,
|
||||
Description = "Blocks copycat, scam and fake domains that imitate other well-known websites, for various reasons.",
|
||||
HomeUrl = "https://github.com/DRSDavidSoft/additional-hosts",
|
||||
IssuesUrl = "https://github.com/DRSDavidSoft/additional-hosts/issues",
|
||||
LicenseId = 2,
|
||||
Name = "Additional Hosts - Fake domains"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -30217,6 +30226,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
MaintainerId = 148
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1896,
|
||||
MaintainerId = 161
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1897,
|
||||
MaintainerId = 161
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1901,
|
||||
MaintainerId = 22
|
||||
|
|
@ -31710,6 +31729,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2512,
|
||||
MaintainerId = 22
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2513,
|
||||
MaintainerId = 161
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -42662,6 +42686,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2512,
|
||||
SyntaxId = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2513,
|
||||
SyntaxId = 2
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -58604,6 +58633,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2512,
|
||||
TagId = 10
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2513,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2513,
|
||||
TagId = 7
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -80158,6 +80197,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/DandelionSprout/adfilt/raw/master/LegitimateURLShortener-AffiliateTagAllowlist.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2725,
|
||||
FilterListId = 2513,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/DRSDavidSoft/additional-hosts/master/domains/blacklist/fake-domains.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -82595,6 +82642,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 160,
|
||||
Name = "Troy Janda",
|
||||
Url = "https://github.com/troysjanda/MyBlockLists"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 161,
|
||||
EmailAddress = "david@refoua.me",
|
||||
Name = "DRS David Soft",
|
||||
TwitterHandle = "drsdavidsoft",
|
||||
Url = "https://github.com/DRSDavidSoft/"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue