mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Adds the opt-in directory fast skip scan setting and renames the library scan settings for consistency
This commit is contained in:
1 parent
cce145e522
commit
9c2e5452da
38 files changed
+1360
-146
No files matched your search
@@ -46,13 +46,16 @@ public class LibraryConfiguration : IEntityTypeConfiguration<LibraryEntity>
|
||||
builder.Property(library => library.IsLocked)
|
||||
.HasColumnOrder(5);
|
||||
|
||||
builder.Property(library => library.DownloadMedatadaFromWeb)
|
||||
builder.Property(library => library.DownloadMetadataFromWeb)
|
||||
.HasDefaultValue(true)
|
||||
.HasColumnOrder(6);
|
||||
|
||||
builder.Property(library => library.SaveMetadataInMediaDirectories)
|
||||
builder.Property(library => library.ShouldSaveMetadataInMediaDirectories)
|
||||
.HasColumnOrder(7);
|
||||
|
||||
builder.Property(library => library.ShouldSkipUnchangedDirectoriesDuringScan)
|
||||
.HasColumnOrder(8);
|
||||
|
||||
// one user with many libraries
|
||||
builder.HasOne(library => library.User)
|
||||
.WithMany(user => user.Libraries)
|
||||
@@ -85,18 +88,18 @@ public class LibraryConfiguration : IEntityTypeConfiguration<LibraryEntity>
|
||||
// audit
|
||||
builder.Property(library => library.CreatedOnUtc)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(8);
|
||||
.HasColumnOrder(9);
|
||||
|
||||
builder.Property(library => library.CreatedBy)
|
||||
.IsRequired()
|
||||
.HasColumnOrder(9);
|
||||
.HasColumnOrder(10);
|
||||
|
||||
builder.Property(library => library.UpdatedOnUtc)
|
||||
.HasDefaultValue(null)
|
||||
.HasColumnOrder(10);
|
||||
.HasColumnOrder(11);
|
||||
|
||||
builder.Property(library => library.UpdatedBy)
|
||||
.HasDefaultValue(null)
|
||||
.HasColumnOrder(11);
|
||||
.HasColumnOrder(12);
|
||||
}
|
||||
}
|
||||
src/Lumina.DataAccess/Common/Migrations/20260809190243_RenamesLibraryScanSettingsColumns.Designer.cs
Generated
+1019
File diff suppressed because it is too large.
Load diff
+48
@@ -0,0 +1,48 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Lumina.DataAccess.Common.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RenamesLibraryScanSettingsColumns : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "SkipUnchangedDirectoriesDuringScan",
|
||||
table: "Libraries",
|
||||
newName: "ShouldSkipUnchangedDirectoriesDuringScan");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "SaveMetadataInMediaDirectories",
|
||||
table: "Libraries",
|
||||
newName: "ShouldSaveMetadataInMediaDirectories");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "DownloadMedatadaFromWeb",
|
||||
table: "Libraries",
|
||||
newName: "DownloadMetadataFromWeb");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ShouldSkipUnchangedDirectoriesDuringScan",
|
||||
table: "Libraries",
|
||||
newName: "SkipUnchangedDirectoriesDuringScan");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ShouldSaveMetadataInMediaDirectories",
|
||||
table: "Libraries",
|
||||
newName: "SaveMetadataInMediaDirectories");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "DownloadMetadataFromWeb",
|
||||
table: "Libraries",
|
||||
newName: "DownloadMedatadaFromWeb");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user