mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-26 10:52:04 -04:00
Make fields readonly Remove unnecessary casts Format document Remove unnecessary usings Sort usings Use file-level namespaces Order modifiers
99 lines
2.2 KiB
C#
99 lines
2.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace DataLayer.Postgres.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class AddIsAudiblePlus : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Tags",
|
|
table: "UserDefinedItem",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
oldClrType: typeof(string),
|
|
oldType: "text",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
name: "Rating_StoryRating",
|
|
table: "UserDefinedItem",
|
|
type: "real",
|
|
nullable: false,
|
|
defaultValue: 0f,
|
|
oldClrType: typeof(float),
|
|
oldType: "real",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
name: "Rating_PerformanceRating",
|
|
table: "UserDefinedItem",
|
|
type: "real",
|
|
nullable: false,
|
|
defaultValue: 0f,
|
|
oldClrType: typeof(float),
|
|
oldType: "real",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
name: "Rating_OverallRating",
|
|
table: "UserDefinedItem",
|
|
type: "real",
|
|
nullable: false,
|
|
defaultValue: 0f,
|
|
oldClrType: typeof(float),
|
|
oldType: "real",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsAudiblePlus",
|
|
table: "LibraryBooks",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsAudiblePlus",
|
|
table: "LibraryBooks");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Tags",
|
|
table: "UserDefinedItem",
|
|
type: "text",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "text");
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
name: "Rating_StoryRating",
|
|
table: "UserDefinedItem",
|
|
type: "real",
|
|
nullable: true,
|
|
oldClrType: typeof(float),
|
|
oldType: "real");
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
name: "Rating_PerformanceRating",
|
|
table: "UserDefinedItem",
|
|
type: "real",
|
|
nullable: true,
|
|
oldClrType: typeof(float),
|
|
oldType: "real");
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
name: "Rating_OverallRating",
|
|
table: "UserDefinedItem",
|
|
type: "real",
|
|
nullable: true,
|
|
oldClrType: typeof(float),
|
|
oldType: "real");
|
|
}
|
|
}
|