Iceshrimp.NET/Iceshrimp.Backend/Core/Database/Migrations/20240213015921_RemoveDriveFileCommentLengthRestriction.cs

42 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Iceshrimp.Backend.Core.Database.Migrations
{
/// <inheritdoc />
public partial class RemoveDriveFileCommentLengthRestriction : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "comment",
table: "drive_file",
type: "text",
nullable: true,
comment: "The comment of the DriveFile.",
oldClrType: typeof(string),
oldType: "character varying(8192)",
oldMaxLength: 8192,
oldNullable: true,
oldComment: "The comment of the DriveFile.");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "comment",
table: "drive_file",
type: "character varying(8192)",
maxLength: 8192,
nullable: true,
comment: "The comment of the DriveFile.",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true,
oldComment: "The comment of the DriveFile.");
}
}
}