Files
Musify/MusifyBackend/Infrastructure/Persistence/Migrations/20260601195757_RenameTimestampsAndAudit.cs
T
Admin 9d433868cc chore: import MusifyBackend into monorepo (preserving history)
git-subtree-dir: MusifyBackend
git-subtree-mainline: 6829e769ed
git-subtree-split: ed7b00c2cc
2026-07-05 03:20:43 +02:00

59 lines
1.7 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Musify.Infrastructure.Persistence.Migrations
{
/// <inheritdoc />
public partial class RenameTimestampsAndAudit : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "UpdatedDate",
table: "Tracks",
newName: "UpdatedAt");
migrationBuilder.RenameColumn(
name: "CreatedDate",
table: "Tracks",
newName: "CreatedAt");
migrationBuilder.RenameColumn(
name: "UpdatedDate",
table: "PlayLists",
newName: "UpdatedAt");
migrationBuilder.RenameColumn(
name: "CreatedDate",
table: "PlayLists",
newName: "CreatedAt");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "UpdatedAt",
table: "Tracks",
newName: "UpdatedDate");
migrationBuilder.RenameColumn(
name: "CreatedAt",
table: "Tracks",
newName: "CreatedDate");
migrationBuilder.RenameColumn(
name: "UpdatedAt",
table: "PlayLists",
newName: "UpdatedDate");
migrationBuilder.RenameColumn(
name: "CreatedAt",
table: "PlayLists",
newName: "CreatedDate");
}
}
}