39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
|
|
using System;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace FileShare_EFCore.Migrations.SQLite
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class AutoMigration_20260523103531 : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AddColumn<DateTime>(
|
|||
|
|
name: "file-creation-time-utc",
|
|||
|
|
table: "managed-file-record",
|
|||
|
|
type: "TEXT",
|
|||
|
|
nullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.CreateIndex(
|
|||
|
|
name: "idx-managed-file-record-file-creation-time",
|
|||
|
|
table: "managed-file-record",
|
|||
|
|
column: "file-creation-time-utc");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropIndex(
|
|||
|
|
name: "idx-managed-file-record-file-creation-time",
|
|||
|
|
table: "managed-file-record");
|
|||
|
|
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "file-creation-time-utc",
|
|||
|
|
table: "managed-file-record");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|