mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3486
This commit is contained in:
parent
03a53f3e20
commit
24149ec94e
3 changed files with 90424 additions and 4 deletions
90342
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230322131009_3486.Designer.cs
generated
Normal file
90342
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230322131009_3486.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,70 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3486 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2519L, 2731L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/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, 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.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 2519L, 2914L, (short)4, "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_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2519L, 2914L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2519L, 2731L },
|
||||
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, 2812L },
|
||||
column: "url",
|
||||
value: "https://www.combinatronics.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, 2813L },
|
||||
column: "url",
|
||||
value: "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.3")
|
||||
.HasAnnotation("ProductVersion", "7.0.4")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
|
||||
|
|
@ -88613,7 +88613,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2731L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/JohnyP36/Personal-List/main/Personal List (uBo).txt"
|
||||
Url = "https://raw.githubusercontent.com/JohnyP36/Personal-List/cdn-page/Dutch Filter List (uBo).txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -89261,7 +89261,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2812L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://www.combinatronics.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
|
||||
{
|
||||
|
|
@ -89269,7 +89269,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2813L,
|
||||
Primariness = (short)3,
|
||||
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
|
||||
{
|
||||
|
|
@ -90102,6 +90102,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-ctld.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519L,
|
||||
Id = 2914L,
|
||||
Primariness = (short)4,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue