mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
chore: migrate #4693
This commit is contained in:
parent
4814c9b2f3
commit
0175a25341
2 changed files with 87818 additions and 0 deletions
87698
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250215232234_4693-2.Designer.cs
generated
Normal file
87698
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250215232234_4693-2.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 _46932 : 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue