35 lines
986 B
C#
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");
|
|
}
|
|
}
|
|
}
|