mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix type for photo focal length equivalent.
This commit is contained in:
3649
Marechai.Database/Migrations/20200530063127_FixFocalLengthEquivalentType.Designer.cs
generated
Normal file
3649
Marechai.Database/Migrations/20200530063127_FixFocalLengthEquivalentType.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Marechai.Database.Migrations
|
||||
{
|
||||
public partial class FixFocalLengthEquivalentType : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<double>("FocalLengthEquivalent", "OwnedMachinePhotos", nullable: true,
|
||||
oldClrType: typeof(ushort), oldType: "smallint unsigned",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<double>("FocalLengthEquivalent", "MachinePhotos", nullable: true,
|
||||
oldClrType: typeof(ushort), oldType: "smallint unsigned",
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<ushort>("FocalLengthEquivalent", "OwnedMachinePhotos", "smallint unsigned",
|
||||
nullable: true, oldClrType: typeof(double), oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<ushort>("FocalLengthEquivalent", "MachinePhotos", "smallint unsigned",
|
||||
nullable: true, oldClrType: typeof(double), oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -876,7 +876,7 @@ namespace Marechai.Database.Migrations
|
||||
|
||||
b.Property<double?>("FocalLength").HasColumnType("double");
|
||||
|
||||
b.Property<ushort?>("FocalLengthEquivalent").HasColumnType("smallint unsigned");
|
||||
b.Property<double?>("FocalLengthEquivalent").HasColumnType("double");
|
||||
|
||||
b.Property<double?>("HorizontalResolution").HasColumnType("double");
|
||||
|
||||
@@ -1302,7 +1302,7 @@ namespace Marechai.Database.Migrations
|
||||
|
||||
b.Property<double?>("FocalLength").HasColumnType("double");
|
||||
|
||||
b.Property<ushort?>("FocalLengthEquivalent").HasColumnType("smallint unsigned");
|
||||
b.Property<double?>("FocalLengthEquivalent").HasColumnType("double");
|
||||
|
||||
b.Property<double?>("HorizontalResolution").HasColumnType("double");
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Marechai.Database.Models
|
||||
[DisplayName("Lens focal length")]
|
||||
public double? FocalLength { get; set; }
|
||||
[DisplayName("Focal length in 35 mm film")]
|
||||
public ushort? FocalLengthEquivalent { get; set; }
|
||||
public double? FocalLengthEquivalent { get; set; }
|
||||
[DisplayName("Horizontal resolution")]
|
||||
public double? HorizontalResolution { get; set; }
|
||||
[DisplayName("ISO speed rating")]
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Marechai.Areas.Admin.Models
|
||||
[DisplayName("Lens focal length")]
|
||||
public double? FocalLength { get; set; }
|
||||
[DisplayName("Focal length in 35 mm film")]
|
||||
public ushort? FocalLengthEquivalent { get; set; }
|
||||
public double? FocalLengthEquivalent { get; set; }
|
||||
[DisplayName("Horizontal resolution")]
|
||||
public double? HorizontalResolution { get; set; }
|
||||
[DisplayName("ISO speed rating")]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Version>3.0.99.1404</Version>
|
||||
<Version>3.0.99.1405</Version>
|
||||
<Company>Canary Islands Computer Museum</Company>
|
||||
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
||||
<Product>Canary Islands Computer Museum Website</Product>
|
||||
@@ -128,6 +128,9 @@
|
||||
<Content Update="Pages\Admin\Details\Resolution.razor">
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
</Content>
|
||||
<Content Update="Pages\Admin\Details\MachinePhoto.razor">
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<_ContentIncludedByDefault Remove="Areas\Admin\Views\BrowserTests\Delete.cshtml" />
|
||||
|
||||
Reference in New Issue
Block a user