mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add runtime nullable migration
This commit is contained in:
parent
c0e6012d70
commit
7a8cc242ae
1307
back/src/Kyoo.Postgresql/Migrations/20240120154137_RuntimeNullable.Designer.cs
generated
Normal file
1307
back/src/Kyoo.Postgresql/Migrations/20240120154137_RuntimeNullable.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,58 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Kyoo.Postgresql.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RuntimeNullable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "runtime",
|
||||
table: "movies",
|
||||
type: "integer",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer"
|
||||
);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "runtime",
|
||||
table: "episodes",
|
||||
type: "integer",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer"
|
||||
);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "runtime",
|
||||
table: "movies",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer",
|
||||
oldNullable: true
|
||||
);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "runtime",
|
||||
table: "episodes",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer",
|
||||
oldNullable: true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
@ -110,7 +110,7 @@ namespace Kyoo.Postgresql.Migrations
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("release_date");
|
||||
|
||||
b.Property<int>("Runtime")
|
||||
b.Property<int?>("Runtime")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("runtime");
|
||||
|
||||
@ -240,7 +240,7 @@ namespace Kyoo.Postgresql.Migrations
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("rating");
|
||||
|
||||
b.Property<int>("Runtime")
|
||||
b.Property<int?>("Runtime")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("runtime");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user