Files
SnowcloakServer/MareSynchronosServer/MareSynchronosShared/Migrations/20230118184347_FilesUploadDate.cs
2025-08-22 11:55:35 +01:00

31 lines
868 B
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MareSynchronosServer.Migrations
{
/// <inheritdoc />
public partial class FilesUploadDate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "upload_date",
table: "file_caches",
type: "timestamp with time zone",
nullable: false,
defaultValue: new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "upload_date",
table: "file_caches");
}
}
}