mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(dir): ♻ re-gen Initial migration
This commit is contained in:
parent
cff66e4048
commit
8cac77796b
5 changed files with 20 additions and 248522 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,4 @@
|
|||
// <auto-generated />
|
||||
using System;
|
||||
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
|
@ -12,7 +11,7 @@
|
|||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
[DbContext(typeof(QueryDbContext))]
|
||||
[Migration("20211118184231_Initial")]
|
||||
[Migration("20211119110803_Initial")]
|
||||
partial class Initial
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
|
|
@ -80,8 +79,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
.HasColumnType("text")
|
||||
.HasColumnName("issues_url");
|
||||
|
||||
b.Property<int?>("LicenseId")
|
||||
b.Property<int>("LicenseId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasDefaultValue(5)
|
||||
.HasColumnName("license_id");
|
||||
|
||||
b.Property<string>("Name")
|
||||
|
|
@ -517,10 +518,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterList", b =>
|
||||
{
|
||||
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.License", null)
|
||||
b.HasOne("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.License", "License")
|
||||
.WithMany("FilterLists")
|
||||
.HasForeignKey("LicenseId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_filter_lists_licenses_license_id");
|
||||
|
||||
b.Navigation("License");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.FilterListLanguage", b =>
|
||||
|
|
@ -108,7 +108,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
name = table.Column<string>(type: "text", nullable: false),
|
||||
description = table.Column<string>(type: "text", nullable: true),
|
||||
license_id = table.Column<int>(type: "integer", nullable: true),
|
||||
license_id = table.Column<int>(type: "integer", nullable: false, defaultValue: 5),
|
||||
home_url = table.Column<string>(type: "text", nullable: true),
|
||||
onion_url = table.Column<string>(type: "text", nullable: true),
|
||||
policy_url = table.Column<string>(type: "text", nullable: true),
|
||||
|
|
@ -126,7 +126,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
name: "fk_filter_lists_licenses_license_id",
|
||||
column: x => x.license_id,
|
||||
principalTable: "licenses",
|
||||
principalColumn: "id");
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue