39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Iceshrimp.Backend.Core.Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class RenameNoteBookmarksTable : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "createdAt",
|
|
table: "note_favorite",
|
|
type: "timestamp with time zone",
|
|
nullable: false,
|
|
comment: "The created date of the NoteBookmark.",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp with time zone",
|
|
oldComment: "The created date of the NoteFavorite.");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "createdAt",
|
|
table: "note_favorite",
|
|
type: "timestamp with time zone",
|
|
nullable: false,
|
|
comment: "The created date of the NoteFavorite.",
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp with time zone",
|
|
oldComment: "The created date of the NoteBookmark.");
|
|
}
|
|
}
|
|
}
|