mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
chore: migrate #4693
Some checks are pending
Some checks are pending
This commit is contained in:
parent
404401cfc2
commit
bad464ac32
3 changed files with 87883 additions and 1 deletions
87698
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250215215404_4693.Designer.cs
generated
Normal file
87698
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250215215404_4693.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,120 @@
|
|||
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 _4693 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterList",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[] { 2728, null, "An attempt to list malicious sites that plagues the cyberspace of Bangladesh.", null, null, null, "https://github.com/touhidurrr/malicious-hosts-bd", "https://github.com/touhidurrr/malicious-hosts-bd/issues", 10, "Malicious Hosts BD", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainer",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 196, "তালিকা@তৌহিদুর.বাংলা", "Md. Touhidur Rahman", null, "তৌহিদুর.বাংলা" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListLanguage",
|
||||
columns: new[] { "FilterListId", "LanguageId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2728, (short)19 },
|
||||
{ 2728, (short)37 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainer",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[] { 2728, 196 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntax",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2728, (short)2 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTag",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2728, 2 },
|
||||
{ 2728, 3 },
|
||||
{ 2728, 6 },
|
||||
{ 2728, 7 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrl",
|
||||
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
|
||||
values: new object[] { 2728, 3061, (short)1, "https://raw.githubusercontent.com/touhidurrr/malicious-hosts-bd/main/domains.txt" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguage",
|
||||
keyColumns: new[] { "FilterListId", "LanguageId" },
|
||||
keyValues: new object[] { 2728, (short)19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguage",
|
||||
keyColumns: new[] { "FilterListId", "LanguageId" },
|
||||
keyValues: new object[] { 2728, (short)37 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2728, 196 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2728, (short)2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2728, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2728, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2728, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2728, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2728, 3061 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2728);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainer",
|
||||
keyColumn: "Id",
|
||||
keyValue: 196);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.UseCollation("Latin1_General_100_CI_AS_SC")
|
||||
.HasAnnotation("ProductVersion", "8.0.7")
|
||||
.HasAnnotation("ProductVersion", "9.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
|
@ -20206,6 +20206,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/ph00lt0/blocklist/issues",
|
||||
LicenseId = 9,
|
||||
Name = "Ph00lt0's Blocklist (HOSTS)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2728,
|
||||
Description = "An attempt to list malicious sites that plagues the cyberspace of Bangladesh.",
|
||||
HomeUrl = "https://github.com/touhidurrr/malicious-hosts-bd",
|
||||
IssuesUrl = "https://github.com/touhidurrr/malicious-hosts-bd/issues",
|
||||
LicenseId = 10,
|
||||
Name = "Malicious Hosts BD"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -24608,6 +24617,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2666,
|
||||
LanguageId = (short)180
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
LanguageId = (short)19
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
LanguageId = (short)37
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -32255,6 +32274,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2727,
|
||||
MaintainerId = 195
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
MaintainerId = 196
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -43582,6 +43606,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2727,
|
||||
SyntaxId = (short)1
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
SyntaxId = (short)2
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -59809,6 +59838,26 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2727,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
TagId = 7
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -62662,6 +62711,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 195,
|
||||
Name = "ph00lt0",
|
||||
Url = "https://github.com/ph00lt0"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 196,
|
||||
EmailAddress = "তালিকা@তৌহিদুর.বাংলা",
|
||||
Name = "Md. Touhidur Rahman",
|
||||
Url = "তৌহিদুর.বাংলা"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -87430,6 +87486,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/ph00lt0/blocklists/master/pihole-blocklist.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2728,
|
||||
Id = 3061,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/touhidurrr/malicious-hosts-bd/main/domains.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue