mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3236
This commit is contained in:
parent
607bd45abd
commit
24dee5eb54
3 changed files with 89503 additions and 6 deletions
89440
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220817173459_3236.Designer.cs
generated
Normal file
89440
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220817173459_3236.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,57 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _3236 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2609L, 2875L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianBlockerHosts.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2608L,
|
||||
column: "license_id",
|
||||
value: 43L);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2609L,
|
||||
columns: new[] { "description", "license_id", "name" },
|
||||
values: new object[] { "Finally, an optimal and extensive list for blocking ads and trackers on Persian language sites! (Domains edition)", 43L, "PersianBlockerHosts: List of Regional Persian/Iranian Domains-Only Blocklist" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2609L, 2875L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianPiHole.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2608L,
|
||||
column: "license_id",
|
||||
value: 4L);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2609L,
|
||||
columns: new[] { "description", "license_id", "name" },
|
||||
values: new object[] { "Finally, an optimal and extensive list for blocking ads and trackers on Persian language sites! (PiHole domains edition)", 4L, "PersianPiHole: List of Regional Persian/Iranian Domains-Only Blocklist" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.6")
|
||||
.HasAnnotation("ProductVersion", "6.0.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
|
||||
|
|
@ -22176,18 +22176,18 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
HomeUrl = "https://github.com/MasterKia/PersianBlocker",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/MasterKia/PersianBlocker/issues",
|
||||
LicenseId = 4L,
|
||||
LicenseId = 43L,
|
||||
Name = "PersianBlocker: Official Regional Persian/Iranian Domains and Cosmetic Blocklist"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2609L,
|
||||
Description = "Finally, an optimal and extensive list for blocking ads and trackers on Persian language sites! (PiHole domains edition)",
|
||||
Description = "Finally, an optimal and extensive list for blocking ads and trackers on Persian language sites! (Domains edition)",
|
||||
HomeUrl = "https://github.com/MasterKia/PersianBlocker",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/MasterKia/PersianBlocker/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "PersianPiHole: List of Regional Persian/Iranian Domains-Only Blocklist"
|
||||
LicenseId = 43L,
|
||||
Name = "PersianBlockerHosts: List of Regional Persian/Iranian Domains-Only Blocklist"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -89208,7 +89208,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2875L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianPiHole.txt"
|
||||
Url = "https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianBlockerHosts.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue