mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
chore: migrate #4795
This commit is contained in:
parent
35e0f08ddc
commit
12fef80b86
3 changed files with 88380 additions and 1 deletions
87998
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250423004727_4795.Designer.cs
generated
Normal file
87998
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250423004727_4795.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,215 @@
|
|||
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 _4795 : 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[,]
|
||||
{
|
||||
{ 2731, null, "Blocking of Meta Plateforms Domains", null, null, null, "https://github.com/Bundy01/meta-blocklists", "https://github.com/Bundy01/meta-blocklists/issues", 4, "Meta Adblock", null, null, null },
|
||||
{ 2732, null, "Blocking of Meta Plateforms Domains", null, null, null, "https://github.com/Bundy01/meta-blocklists", "https://github.com/Bundy01/meta-blocklists/issues", 4, "Meta Domains", null, null, null },
|
||||
{ 2733, null, "Blocking of Meta Plateforms Domains", null, null, null, "https://github.com/Bundy01/meta-blocklists", "https://github.com/Bundy01/meta-blocklists/issues", 4, "Meta Hosts (IPv4 And IPv6)", null, null, null },
|
||||
{ 2734, null, "Blocking of Meta Plateforms Domains", null, null, null, "https://github.com/Bundy01/meta-blocklists", "https://github.com/Bundy01/meta-blocklists/issues", 4, "Meta Hosts (Only IPv4)", null, null, null },
|
||||
{ 2735, null, "Blocking of Meta Plateforms Domains", null, null, null, "https://github.com/Bundy01/meta-blocklists", "https://github.com/Bundy01/meta-blocklists/issues", 4, "Meta Unbound", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainer",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 198, null, "Bundy01", null, "https://github.com/Bundy01" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainer",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2731, 198 },
|
||||
{ 2732, 198 },
|
||||
{ 2733, 198 },
|
||||
{ 2734, 198 },
|
||||
{ 2735, 198 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntax",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2731, (short)3 },
|
||||
{ 2732, (short)2 },
|
||||
{ 2733, (short)36 },
|
||||
{ 2734, (short)1 },
|
||||
{ 2735, (short)24 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTag",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2731, 19 },
|
||||
{ 2732, 19 },
|
||||
{ 2733, 19 },
|
||||
{ 2734, 19 },
|
||||
{ 2735, 19 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrl",
|
||||
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2731, 3064, (short)1, "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-adblock.txt" },
|
||||
{ 2732, 3065, (short)1, "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-domains.txt" },
|
||||
{ 2733, 3066, (short)1, "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-hosts_4+6.txt" },
|
||||
{ 2734, 3067, (short)1, "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-hosts_4.txt" },
|
||||
{ 2735, 3064, (short)1, "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-unbound.txt" }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2731, 198 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2732, 198 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2733, 198 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2734, 198 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2735, 198 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2731, (short)3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2732, (short)2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2733, (short)36 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2734, (short)1 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2735, (short)24 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2731, 19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2732, 19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2733, 19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2734, 19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2735, 19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2731, 3064 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2732, 3065 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2733, 3066 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2734, 3067 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2735, 3064 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2731);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2732);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2733);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2734);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2735);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainer",
|
||||
keyColumn: "Id",
|
||||
keyValue: 198);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.UseCollation("Latin1_General_100_CI_AS_SC")
|
||||
.HasAnnotation("ProductVersion", "8.0.13")
|
||||
.HasAnnotation("ProductVersion", "8.0.15")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
|
@ -20241,6 +20241,51 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
LicenseId = 37,
|
||||
Name = "Microsoft GitHub Less Social (Aggressive)",
|
||||
SubmissionUrl = "https://codeberg.org/toastal/github-less-social#pitching-in"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2731,
|
||||
Description = "Blocking of Meta Plateforms Domains",
|
||||
HomeUrl = "https://github.com/Bundy01/meta-blocklists",
|
||||
IssuesUrl = "https://github.com/Bundy01/meta-blocklists/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Meta Adblock"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2732,
|
||||
Description = "Blocking of Meta Plateforms Domains",
|
||||
HomeUrl = "https://github.com/Bundy01/meta-blocklists",
|
||||
IssuesUrl = "https://github.com/Bundy01/meta-blocklists/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Meta Domains"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2733,
|
||||
Description = "Blocking of Meta Plateforms Domains",
|
||||
HomeUrl = "https://github.com/Bundy01/meta-blocklists",
|
||||
IssuesUrl = "https://github.com/Bundy01/meta-blocklists/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Meta Hosts (IPv4 And IPv6)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2734,
|
||||
Description = "Blocking of Meta Plateforms Domains",
|
||||
HomeUrl = "https://github.com/Bundy01/meta-blocklists",
|
||||
IssuesUrl = "https://github.com/Bundy01/meta-blocklists/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Meta Hosts (Only IPv4)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2735,
|
||||
Description = "Blocking of Meta Plateforms Domains",
|
||||
HomeUrl = "https://github.com/Bundy01/meta-blocklists",
|
||||
IssuesUrl = "https://github.com/Bundy01/meta-blocklists/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Meta Unbound"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -32325,6 +32370,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2730,
|
||||
MaintainerId = 197
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2731,
|
||||
MaintainerId = 198
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2732,
|
||||
MaintainerId = 198
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2733,
|
||||
MaintainerId = 198
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2734,
|
||||
MaintainerId = 198
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2735,
|
||||
MaintainerId = 198
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -43672,6 +43742,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2730,
|
||||
SyntaxId = (short)21
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2731,
|
||||
SyntaxId = (short)3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2732,
|
||||
SyntaxId = (short)2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2733,
|
||||
SyntaxId = (short)36
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2734,
|
||||
SyntaxId = (short)1
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2735,
|
||||
SyntaxId = (short)24
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -59954,6 +60049,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2730,
|
||||
TagId = 35
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2731,
|
||||
TagId = 19
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2732,
|
||||
TagId = 19
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2733,
|
||||
TagId = 19
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2734,
|
||||
TagId = 19
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2735,
|
||||
TagId = 19
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -62820,6 +62940,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 197,
|
||||
Name = "toastal",
|
||||
Url = "https://toast.al/"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 198,
|
||||
Name = "Bundy01",
|
||||
Url = "https://github.com/Bundy01"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -87628,6 +87754,46 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://git.sr.ht/~toastal/github-less-social/blob/trunk/aggressive.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2731,
|
||||
Id = 3064,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-adblock.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2732,
|
||||
Id = 3065,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2733,
|
||||
Id = 3066,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-hosts_4+6.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2734,
|
||||
Id = 3067,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-hosts_4.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2735,
|
||||
Id = 3064,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-unbound.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue