feat(data): migrate PR #3590

This commit is contained in:
Azure Pipelines EF Migration Bot 2023-05-04 14:15:30 +00:00 committed by Collin Barrett
parent ee6ca2efe4
commit a17e9a38af
3 changed files with 90771 additions and 3 deletions

View file

@ -0,0 +1,91 @@
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 _3590 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "filter_list_languages",
columns: new[] { "filter_list_id", "language_id" },
values: new object[,]
{
{ 2519L, 4L },
{ 2519L, 48L }
});
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2519L, 2812L },
column: "url",
value: "https://cdn.jsdelivr.net/gh/JohnyP36/Personal-List@cdn-page/Dutch Filter List (uBo).txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2519L, 2813L },
column: "url",
value: "https://cdn.statically.io/gh/JohnyP36/Personal-List/cdn-page/Dutch Filter List (uBo).txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2519L, 2923L },
column: "url",
value: "https://raw.githubusercontent.com/JohnyP36/Personal-List/main/Personal List (uBo).txt");
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[] { 2519L, 2937L, (short)5, "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_languages",
keyColumns: new[] { "filter_list_id", "language_id" },
keyValues: new object[] { 2519L, 4L });
migrationBuilder.DeleteData(
table: "filter_list_languages",
keyColumns: new[] { "filter_list_id", "language_id" },
keyValues: new object[] { 2519L, 48L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2519L, 2937L });
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2519L, 2812L },
column: "url",
value: "https://cdn.statically.io/gh/JohnyP36/Personal-List/cdn-page/Dutch Filter List (uBo).txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2519L, 2813L },
column: "url",
value: "https://raw.githubusercontent.com/JohnyP36/Personal-List/main/Personal List (uBo).txt");
migrationBuilder.UpdateData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2519L, 2923L },
column: "url",
value: "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt");
}
}
}

View file

@ -27231,6 +27231,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
LanguageId = 113L
},
new
{
FilterListId = 2519L,
LanguageId = 4L
},
new
{
FilterListId = 2519L,
LanguageId = 48L
},
new
{
FilterListId = 2519L,
LanguageId = 113L
@ -89528,7 +89538,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2812L,
Primariness = (short)2,
SegmentNumber = (short)0,
Url = "https://cdn.statically.io/gh/JohnyP36/Personal-List/cdn-page/Dutch Filter List (uBo).txt"
Url = "https://cdn.jsdelivr.net/gh/JohnyP36/Personal-List@cdn-page/Dutch Filter List (uBo).txt"
},
new
{
@ -89536,7 +89546,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2813L,
Primariness = (short)3,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/JohnyP36/Personal-List/main/Personal List (uBo).txt"
Url = "https://cdn.statically.io/gh/JohnyP36/Personal-List/cdn-page/Dutch Filter List (uBo).txt"
},
new
{
@ -90304,7 +90314,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2923L,
Primariness = (short)4,
SegmentNumber = (short)0,
Url = "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt"
Url = "https://raw.githubusercontent.com/JohnyP36/Personal-List/main/Personal List (uBo).txt"
},
new
{
@ -90409,6 +90419,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/jarelllama/Scam-Blocklist/main/adblock.txt"
},
new
{
FilterListId = 2519L,
Id = 2937L,
Primariness = (short)5,
SegmentNumber = (short)0,
Url = "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt"
});
});