chore: migrate #4985

This commit is contained in:
Collin Barrett 2025-07-26 14:17:45 -05:00 committed by Collin Barrett
parent fd0fab358a
commit 1eb7c1bd31
3 changed files with 88112 additions and 33 deletions

View file

@ -0,0 +1,67 @@
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 _4985 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "SoftwareSyntax",
keyColumns: new[] { "SoftwareId", "SyntaxId" },
keyValues: new object[] { (short)27, (short)1 });
migrationBuilder.DeleteData(
table: "SoftwareSyntax",
keyColumns: new[] { "SoftwareId", "SyntaxId" },
keyValues: new object[] { (short)27, (short)2 });
migrationBuilder.DeleteData(
table: "SoftwareSyntax",
keyColumns: new[] { "SoftwareId", "SyntaxId" },
keyValues: new object[] { (short)27, (short)36 });
migrationBuilder.DeleteData(
table: "SoftwareSyntax",
keyColumns: new[] { "SoftwareId", "SyntaxId" },
keyValues: new object[] { (short)27, (short)48 });
migrationBuilder.DeleteData(
table: "SoftwareSyntax",
keyColumns: new[] { "SoftwareId", "SyntaxId" },
keyValues: new object[] { (short)27, (short)54 });
migrationBuilder.DeleteData(
table: "Software",
keyColumn: "Id",
keyValue: (short)27);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Software",
columns: new[] { "Id", "Description", "DownloadUrl", "HomeUrl", "Name" },
values: new object[] { (short)27, null, "https://github.com/henrypp/hostsmgr/releases", "https://www.henrypp.org/product/hostsmgr", "hostsmgr" });
migrationBuilder.InsertData(
table: "SoftwareSyntax",
columns: new[] { "SoftwareId", "SyntaxId" },
values: new object[,]
{
{ (short)27, (short)1 },
{ (short)27, (short)2 },
{ (short)27, (short)36 },
{ (short)27, (short)48 },
{ (short)27, (short)54 }
});
}
}
}

View file

@ -63573,14 +63573,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
SupportsAbpUrlScheme = false
},
new
{
Id = (short)27,
DownloadUrl = "https://github.com/henrypp/hostsmgr/releases",
HomeUrl = "https://www.henrypp.org/product/hostsmgr",
Name = "hostsmgr",
SupportsAbpUrlScheme = false
},
new
{
Id = (short)28,
DownloadUrl = "https://zenz-solutions.de/personaldnsfilter/",
@ -64249,31 +64241,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
SyntaxId = (short)50
},
new
{
SoftwareId = (short)27,
SyntaxId = (short)1
},
new
{
SoftwareId = (short)27,
SyntaxId = (short)2
},
new
{
SoftwareId = (short)27,
SyntaxId = (short)36
},
new
{
SoftwareId = (short)27,
SyntaxId = (short)48
},
new
{
SoftwareId = (short)27,
SyntaxId = (short)54
},
new
{
SoftwareId = (short)28,
SyntaxId = (short)1