mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2141
This commit is contained in:
parent
baa40fe0dd
commit
3a68238779
3 changed files with 83137 additions and 22 deletions
82869
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20201209145602_2141.Designer.cs
generated
Normal file
82869
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20201209145602_2141.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,105 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2141 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Iso6391",
|
||||
table: "FilterListLanguages",
|
||||
type: "character(2)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(2)");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterLists",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2437, null, "A blocklist of malicious URLs that are being used for malware distribution.", null, null, null, "https://gitlab.com/curben/urlhaus-filter", "https://gitlab.com/curben/urlhaus-filter/issues", 28, "urlhaus-filter (IE)", null, null, null },
|
||||
{ 2438, null, "A blocklist of phishing websites. Based on PhishTank and OpenPhish.", null, null, null, "https://gitlab.com/curben/phishing-filter", "https://gitlab.com/curben/phishing-filter/issues", 8, "phishing-filter (IE)", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2437, 10 },
|
||||
{ 2438, 10 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2437, 6 },
|
||||
{ 2438, 7 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2639, 2437, (short)1, "https://curben.gitlab.io/malware-filter/urlhaus-filter-online.tpl" },
|
||||
{ 2640, 2438, (short)1, "https://curben.gitlab.io/phishing-filter-mirror/phishing-filter.tpl" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2437, 10 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2438, 10 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2437, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2438, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2639);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2640);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2437);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2438);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Iso6391",
|
||||
table: "FilterListLanguages",
|
||||
type: "character varying(2)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character(2)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -15,9 +15,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
||||
.HasAnnotation("ProductVersion", "3.1.9")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
.UseIdentityByDefaultColumns()
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63)
|
||||
.HasAnnotation("ProductVersion", "5.0.1");
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Dependent", b =>
|
||||
{
|
||||
|
|
@ -66,7 +66,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.UseIdentityByDefaultColumn();
|
||||
|
||||
b.Property<string>("ChatUrl")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -5909,8 +5909,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 855,
|
||||
Description = @"Internetizens: Fights to the death over their obsession with light/dark themes.
|
||||
Me, an intellectual: Creates these pink themes that look colourful, that are easy on the eye, and which helps make your life that little bit more fun.",
|
||||
Description = "Internetizens: Fights to the death over their obsession with light/dark themes.\nMe, an intellectual: Creates these pink themes that look colourful, that are easy on the eye, and which helps make your life that little bit more fun.",
|
||||
DonateUrl = "https://sproutsluckycorner.wordpress.com/2017/11/14/my-work-and-contact-resume/#donations",
|
||||
EmailAddress = "imreeil42@gmail.com",
|
||||
HomeUrl = "https://github.com/DandelionSprout/adfilt",
|
||||
|
|
@ -18030,11 +18029,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2332,
|
||||
Description = @"Includes MAL-Sync UI
|
||||
Cosmetic filters for MAL-Sync’s supported sites
|
||||
Filters for some ads found on the said supported sites
|
||||
Includes Blur Preview Thumbnails filters
|
||||
Other hotfixes for Anime and Manga sites",
|
||||
Description = "Includes MAL-Sync UI\nCosmetic filters for MAL-Sync’s supported sites\nFilters for some ads found on the said supported sites\nIncludes Blur Preview Thumbnails filters\nOther hotfixes for Anime and Manga sites",
|
||||
HomeUrl = "https://github.com/Karmesinrot/Anifiltrs",
|
||||
IssuesUrl = "https://github.com/Karmesinrot/Anifiltrs/issues",
|
||||
LicenseId = 4,
|
||||
|
|
@ -18043,8 +18038,7 @@ Includes Blur Preview Thumbnails filters
|
|||
new
|
||||
{
|
||||
Id = 2333,
|
||||
Description = @"Filters for unbreaking favicons and images on lolamtisch’s MAL-Sync miniMal iframe
|
||||
Allow MAL-Sync Extension’s episode release check on Chrome",
|
||||
Description = "Filters for unbreaking favicons and images on lolamtisch’s MAL-Sync miniMal iframe\nAllow MAL-Sync Extension’s episode release check on Chrome",
|
||||
HomeUrl = "https://github.com/Karmesinrot/Anifiltrs",
|
||||
IssuesUrl = "https://github.com/Karmesinrot/Anifiltrs/issues",
|
||||
LicenseId = 4,
|
||||
|
|
@ -19037,6 +19031,24 @@ Includes Blur Preview Thumbnails filters
|
|||
IssuesUrl = "https://github.com/DandelionSprout/adfilt/issues",
|
||||
LicenseId = 35,
|
||||
Name = "Anti-'Weeb boob games on Steam' List"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2437,
|
||||
Description = "A blocklist of malicious URLs that are being used for malware distribution.",
|
||||
HomeUrl = "https://gitlab.com/curben/urlhaus-filter",
|
||||
IssuesUrl = "https://gitlab.com/curben/urlhaus-filter/issues",
|
||||
LicenseId = 28,
|
||||
Name = "urlhaus-filter (IE)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2438,
|
||||
Description = "A blocklist of phishing websites. Based on PhishTank and OpenPhish.",
|
||||
HomeUrl = "https://gitlab.com/curben/phishing-filter",
|
||||
IssuesUrl = "https://gitlab.com/curben/phishing-filter/issues",
|
||||
LicenseId = 8,
|
||||
Name = "phishing-filter (IE)"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -19046,7 +19058,7 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Iso6391")
|
||||
.HasColumnType("character varying(2)");
|
||||
.HasColumnType("character(2)");
|
||||
|
||||
b.HasKey("FilterListId", "Iso6391");
|
||||
|
||||
|
|
@ -41443,6 +41455,16 @@ Includes Blur Preview Thumbnails filters
|
|||
{
|
||||
FilterListId = 2436,
|
||||
SyntaxId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2437,
|
||||
SyntaxId = 10
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2438,
|
||||
SyntaxId = 10
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -56885,6 +56907,16 @@ Includes Blur Preview Thumbnails filters
|
|||
{
|
||||
FilterListId = 2436,
|
||||
TagId = 30
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2437,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2438,
|
||||
TagId = 7
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -56893,7 +56925,7 @@ Includes Blur Preview Thumbnails filters
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.UseIdentityByDefaultColumn();
|
||||
|
||||
b.Property<int>("FilterListId")
|
||||
.HasColumnType("integer");
|
||||
|
|
@ -77855,6 +77887,22 @@ Includes Blur Preview Thumbnails filters
|
|||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/DandelionSprout/adfilt/-/raw/master/Sensitive lists/AntiWeebBoobGamesList.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2639,
|
||||
FilterListId = 2437,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-online.tpl"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2640,
|
||||
FilterListId = 2438,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/phishing-filter-mirror/phishing-filter.tpl"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -77943,9 +77991,9 @@ Includes Blur Preview Thumbnails filters
|
|||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Language", b =>
|
||||
{
|
||||
b.Property<string>("Iso6391")
|
||||
.HasMaxLength(2)
|
||||
.HasColumnType("character(2)")
|
||||
.IsFixedLength(true)
|
||||
.HasMaxLength(2);
|
||||
.IsFixedLength(true);
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
|
|
@ -78863,7 +78911,7 @@ Includes Blur Preview Thumbnails filters
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.UseIdentityByDefaultColumn();
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
|
|
@ -79283,7 +79331,7 @@ Includes Blur Preview Thumbnails filters
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.UseIdentityByDefaultColumn();
|
||||
|
||||
b.Property<string>("EmailAddress")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -80627,7 +80675,7 @@ Includes Blur Preview Thumbnails filters
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.UseIdentityByDefaultColumn();
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -82049,7 +82097,7 @@ Includes Blur Preview Thumbnails filters
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.UseIdentityByDefaultColumn();
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -82323,7 +82371,7 @@ Includes Blur Preview Thumbnails filters
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
.UseIdentityByDefaultColumn();
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -82598,6 +82646,10 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("DependentFilterListId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("DependencyFilterList");
|
||||
|
||||
b.Navigation("DependentFilterList");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", b =>
|
||||
|
|
@ -82605,6 +82657,8 @@ Includes Blur Preview Thumbnails filters
|
|||
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.License", "License")
|
||||
.WithMany("FilterLists")
|
||||
.HasForeignKey("LicenseId");
|
||||
|
||||
b.Navigation("License");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListLanguage", b =>
|
||||
|
|
@ -82620,6 +82674,10 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("Iso6391")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("FilterList");
|
||||
|
||||
b.Navigation("Language");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListMaintainer", b =>
|
||||
|
|
@ -82635,6 +82693,10 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("MaintainerId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("FilterList");
|
||||
|
||||
b.Navigation("Maintainer");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListSyntax", b =>
|
||||
|
|
@ -82650,6 +82712,10 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("SyntaxId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("FilterList");
|
||||
|
||||
b.Navigation("Syntax");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListTag", b =>
|
||||
|
|
@ -82665,6 +82731,10 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("TagId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("FilterList");
|
||||
|
||||
b.Navigation("Tag");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListViewUrl", b =>
|
||||
|
|
@ -82674,6 +82744,8 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("FilterListId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("FilterList");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Fork", b =>
|
||||
|
|
@ -82689,6 +82761,10 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("UpstreamFilterListId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("ForkFilterList");
|
||||
|
||||
b.Navigation("UpstreamFilterList");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Merge", b =>
|
||||
|
|
@ -82704,6 +82780,10 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("IncludesFilterListId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("IncludedInFilterList");
|
||||
|
||||
b.Navigation("IncludesFilterList");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.SoftwareSyntax", b =>
|
||||
|
|
@ -82719,6 +82799,67 @@ Includes Blur Preview Thumbnails filters
|
|||
.HasForeignKey("SyntaxId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Software");
|
||||
|
||||
b.Navigation("Syntax");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", b =>
|
||||
{
|
||||
b.Navigation("DependencyFilterLists");
|
||||
|
||||
b.Navigation("DependentFilterLists");
|
||||
|
||||
b.Navigation("FilterListLanguages");
|
||||
|
||||
b.Navigation("FilterListMaintainers");
|
||||
|
||||
b.Navigation("FilterListSyntaxes");
|
||||
|
||||
b.Navigation("FilterListTags");
|
||||
|
||||
b.Navigation("ForkFilterLists");
|
||||
|
||||
b.Navigation("IncludedInFilterLists");
|
||||
|
||||
b.Navigation("IncludesFilterLists");
|
||||
|
||||
b.Navigation("UpstreamFilterLists");
|
||||
|
||||
b.Navigation("ViewUrls");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Language", b =>
|
||||
{
|
||||
b.Navigation("FilterListLanguages");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.License", b =>
|
||||
{
|
||||
b.Navigation("FilterLists");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Maintainer", b =>
|
||||
{
|
||||
b.Navigation("FilterListMaintainers");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Software", b =>
|
||||
{
|
||||
b.Navigation("SoftwareSyntaxes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Syntax", b =>
|
||||
{
|
||||
b.Navigation("FilterListSyntaxes");
|
||||
|
||||
b.Navigation("SoftwareSyntaxes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Tag", b =>
|
||||
{
|
||||
b.Navigation("FilterListTags");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue