mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-05-09 16:16:13 -04:00
Make fields readonly Remove unnecessary casts Format document Remove unnecessary usings Sort usings Use file-level namespaces Order modifiers
46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace DataLayer.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class AddAudioFormatData : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "_audioFormat",
|
|
table: "Books",
|
|
newName: "IsSpatial");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "LastDownloadedFileVersion",
|
|
table: "UserDefinedItem",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "LastDownloadedFormat",
|
|
table: "UserDefinedItem",
|
|
type: "INTEGER",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "LastDownloadedFileVersion",
|
|
table: "UserDefinedItem");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LastDownloadedFormat",
|
|
table: "UserDefinedItem");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "IsSpatial",
|
|
table: "Books",
|
|
newName: "_audioFormat");
|
|
}
|
|
}
|