Mizuki/Migrations/20250116072643_Adjust timestamp.cs
2025-01-16 08:45:06 +01:00

35 lines
986 B
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Mizuki.Migrations
{
/// <inheritdoc />
public partial class Adjusttimestamp : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<long>(
name: "TimeOfUpload",
table: "Uploads",
type: "INTEGER",
nullable: false,
oldClrType: typeof(DateTimeOffset),
oldType: "TEXT");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTimeOffset>(
name: "TimeOfUpload",
table: "Uploads",
type: "TEXT",
nullable: false,
oldClrType: typeof(long),
oldType: "INTEGER");
}
}
}