mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2606
This commit is contained in:
parent
82eb843b44
commit
4732e3278e
3 changed files with 83645 additions and 2 deletions
83552
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211025135903_2606.Designer.cs
generated
Normal file
83552
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211025135903_2606.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,74 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2606 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2752,
|
||||
column: "Primariness",
|
||||
value: (short)1);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2753,
|
||||
column: "Primariness",
|
||||
value: (short)1);
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2756, 2537, (short)2, "https://iam-py-test.github.io/my_filters_001/antimalware.txt" },
|
||||
{ 2757, 2538, (short)2, "https://iam-py-test.github.io/my_filters_001/Alternative list formats/antimalware_hosts.txt" }
|
||||
});
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2538,
|
||||
column: "IssuesUrl",
|
||||
value: "https://github.com/iam-py-test/my_filters_001/issues/");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2756);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2757);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2752,
|
||||
column: "Primariness",
|
||||
value: (short)0);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2753,
|
||||
column: "Primariness",
|
||||
value: (short)0);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2538,
|
||||
column: "IssuesUrl",
|
||||
value: null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19192,6 +19192,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2538,
|
||||
Description = "Block malware, phishing, and scams for a more secure browser (HOSTS version - not for uBlock Origin)",
|
||||
HomeUrl = "https://github.com/iam-py-test/my_filters_001",
|
||||
IssuesUrl = "https://github.com/iam-py-test/my_filters_001/issues/",
|
||||
LicenseId = 28,
|
||||
Name = "Malicious website blocklist (HOSTS)"
|
||||
});
|
||||
|
|
@ -78489,7 +78490,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
Id = 2752,
|
||||
FilterListId = 2537,
|
||||
Primariness = (short)0,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/iam-py-test/my_filters_001/main/antimalware.txt"
|
||||
},
|
||||
|
|
@ -78497,7 +78498,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
Id = 2753,
|
||||
FilterListId = 2538,
|
||||
Primariness = (short)0,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/iam-py-test/my_filters_001/main/Alternative list formats/antimalware_hosts.txt"
|
||||
},
|
||||
|
|
@ -78516,6 +78517,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://iam-py-test.github.io/mirrors/LegitimateURLShortener.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2756,
|
||||
FilterListId = 2537,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://iam-py-test.github.io/my_filters_001/antimalware.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2757,
|
||||
FilterListId = 2538,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://iam-py-test.github.io/my_filters_001/Alternative list formats/antimalware_hosts.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue