mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3951
This commit is contained in:
parent
135f54e1e2
commit
62c7621e72
3 changed files with 87910 additions and 4 deletions
87846
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20231129023241_3951.Designer.cs
generated
Normal file
87846
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20231129023241_3951.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,60 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3951 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2440L, 2642L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/arapurayil/aBL/main/filters/social.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2441L, 2643L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/arapurayil/aBL/main/filters/nsfw.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2442L, 2644L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/arapurayil/aBL/main/filters/main.txt");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2440L, 2642L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/arapurayil/aBL/master/lists/social/filter_list.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2441L, 2643L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/arapurayil/aBL/master/lists/porn_gambling_snuff/filter_list.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2442L, 2644L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/arapurayil/aBL/master/lists/regional/filter_list.txt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.13")
|
||||
.HasAnnotation("ProductVersion", "7.0.14")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
|
||||
|
|
@ -85405,7 +85405,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2642L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/arapurayil/aBL/master/lists/social/filter_list.txt"
|
||||
Url = "https://raw.githubusercontent.com/arapurayil/aBL/main/filters/social.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -85413,7 +85413,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2643L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/arapurayil/aBL/master/lists/porn_gambling_snuff/filter_list.txt"
|
||||
Url = "https://raw.githubusercontent.com/arapurayil/aBL/main/filters/nsfw.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -85421,7 +85421,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2644L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/arapurayil/aBL/master/lists/regional/filter_list.txt"
|
||||
Url = "https://raw.githubusercontent.com/arapurayil/aBL/main/filters/main.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue