mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate #4735
This commit is contained in:
parent
4b533bc04d
commit
d3cbdf5147
3 changed files with 88159 additions and 1 deletions
87832
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250304001344_4735.Designer.cs
generated
Normal file
87832
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20250304001344_4735.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,192 @@
|
|||
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 _4735 : 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[,]
|
||||
{
|
||||
{ 2729, "xmpp:github-less-social@chat.toastal.in.th?join", "Removes social, upsells, & AI features from the proprietary MS GitHub Git forge, directly-adjacent Microsoft-owned platforms, & some adjacent services using this platform to integrate social features.", "https://toast.al/funding/", "~toastal/github-less-social@lists.sr.ht", null, "https://codeberg.org/toastal/github-less-social", "https://codeberg.org/toastal/github-less-social/issues", 37, "Microsoft GitHub Less Social", null, null, "https://codeberg.org/toastal/github-less-social#pitching-in" },
|
||||
{ 2730, "xmpp:github-less-social@chat.toastal.in.th?join", "Aggressively removes social, upsells & AI features from the proprietary MS GitHub Git forge, directly-adjacent Microsoft-owned platforms, & some adjacent services using this platform to integrate social features.", "https://toast.al/funding/", "~toastal/github-less-social@lists.sr.ht", null, "https://codeberg.org/toastal/github-less-social", "https://codeberg.org/toastal/github-less-social/issues", 37, "Microsoft GitHub Less Social", null, null, "https://codeberg.org/toastal/github-less-social#pitching-in" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainer",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 197, null, "toastal", null, "https://toast.al/" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListLanguage",
|
||||
columns: new[] { "FilterListId", "LanguageId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2729, (short)37 },
|
||||
{ 2730, (short)37 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainer",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2729, 197 },
|
||||
{ 2730, 197 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntax",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2729, (short)4 },
|
||||
{ 2730, (short)4 },
|
||||
{ 2730, (short)21 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTag",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2729, 3 },
|
||||
{ 2729, 19 },
|
||||
{ 2729, 35 },
|
||||
{ 2730, 3 },
|
||||
{ 2730, 9 },
|
||||
{ 2730, 19 },
|
||||
{ 2730, 35 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrl",
|
||||
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2729, 3062, (short)1, "https://codeberg.org/toastal/github-less-social/raw/branch/trunk/list.txt" },
|
||||
{ 2729, 3063, (short)2, "https://git.sr.ht/~toastal/github-less-social/blob/trunk/list.txt" },
|
||||
{ 2730, 3062, (short)1, "https://codeberg.org/toastal/github-less-social/raw/branch/trunk/aggressive.txt" },
|
||||
{ 2730, 3063, (short)2, "https://git.sr.ht/~toastal/github-less-social/blob/trunk/aggressive.txt" }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguage",
|
||||
keyColumns: new[] { "FilterListId", "LanguageId" },
|
||||
keyValues: new object[] { 2729, (short)37 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguage",
|
||||
keyColumns: new[] { "FilterListId", "LanguageId" },
|
||||
keyValues: new object[] { 2730, (short)37 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2729, 197 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2730, 197 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2729, (short)4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2730, (short)4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2730, (short)21 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2729, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2729, 19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2729, 35 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2730, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2730, 9 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2730, 19 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2730, 35 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2729, 3062 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2729, 3063 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2730, 3062 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2730, 3063 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2729);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2730);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainer",
|
||||
keyColumn: "Id",
|
||||
keyValue: 197);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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", "9.0.2")
|
||||
.HasAnnotation("ProductVersion", "8.0.13")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
|
@ -20215,6 +20215,32 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/touhidurrr/malicious-hosts-bd/issues",
|
||||
LicenseId = 10,
|
||||
Name = "Malicious Hosts BD"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2729,
|
||||
ChatUrl = "xmpp:github-less-social@chat.toastal.in.th?join",
|
||||
Description = "Removes social, upsells, & AI features from the proprietary MS GitHub Git forge, directly-adjacent Microsoft-owned platforms, & some adjacent services using this platform to integrate social features.",
|
||||
DonateUrl = "https://toast.al/funding/",
|
||||
EmailAddress = "~toastal/github-less-social@lists.sr.ht",
|
||||
HomeUrl = "https://codeberg.org/toastal/github-less-social",
|
||||
IssuesUrl = "https://codeberg.org/toastal/github-less-social/issues",
|
||||
LicenseId = 37,
|
||||
Name = "Microsoft GitHub Less Social",
|
||||
SubmissionUrl = "https://codeberg.org/toastal/github-less-social#pitching-in"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2730,
|
||||
ChatUrl = "xmpp:github-less-social@chat.toastal.in.th?join",
|
||||
Description = "Aggressively removes social, upsells & AI features from the proprietary MS GitHub Git forge, directly-adjacent Microsoft-owned platforms, & some adjacent services using this platform to integrate social features.",
|
||||
DonateUrl = "https://toast.al/funding/",
|
||||
EmailAddress = "~toastal/github-less-social@lists.sr.ht",
|
||||
HomeUrl = "https://codeberg.org/toastal/github-less-social",
|
||||
IssuesUrl = "https://codeberg.org/toastal/github-less-social/issues",
|
||||
LicenseId = 37,
|
||||
Name = "Microsoft GitHub Less Social",
|
||||
SubmissionUrl = "https://codeberg.org/toastal/github-less-social#pitching-in"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -24627,6 +24653,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2728,
|
||||
LanguageId = (short)37
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
LanguageId = (short)37
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
LanguageId = (short)37
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -32279,6 +32315,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2728,
|
||||
MaintainerId = 196
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
MaintainerId = 197
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
MaintainerId = 197
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -43611,6 +43657,21 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2728,
|
||||
SyntaxId = (short)2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
SyntaxId = (short)4
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
SyntaxId = (short)4
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
SyntaxId = (short)21
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -59858,6 +59919,41 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2728,
|
||||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
TagId = 19
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
TagId = 35
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
TagId = 9
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
TagId = 19
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
TagId = 35
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -62718,6 +62814,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
EmailAddress = "তালিকা@তৌহিদুর.বাংলা",
|
||||
Name = "Md. Touhidur Rahman",
|
||||
Url = "তৌহিদুর.বাংলা"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 197,
|
||||
Name = "toastal",
|
||||
Url = "https://toast.al/"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -87494,6 +87596,38 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/touhidurrr/malicious-hosts-bd/main/domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
Id = 3062,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://codeberg.org/toastal/github-less-social/raw/branch/trunk/list.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
Id = 3062,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://codeberg.org/toastal/github-less-social/raw/branch/trunk/aggressive.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2729,
|
||||
Id = 3063,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://git.sr.ht/~toastal/github-less-social/blob/trunk/list.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2730,
|
||||
Id = 3063,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://git.sr.ht/~toastal/github-less-social/blob/trunk/aggressive.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue