FileShare/FileShare-EFCore/Migrations/PostgreSQL/20260523023643_AutoMigration_20260523103531.cs
lq1405 c6b05c12e5 fix(web): 恢复视频继续播放和进度保存
- 将播放器收敛为单个共享实例,避免列表/网格内多个 video ref 导致进度保存失效
- 恢复视频播放器上方的继续播放提示
- 在播放、暂停、拖动、结束、切换页面和离开页面时保存播放位置
- 保留文件浏览分页和排序参数的前端调用
2026-05-23 11:03:51 +08:00

39 lines
1.2 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FileShare_EFCore.Migrations.PostgreSQL
{
/// <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: "timestamp with time zone",
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");
}
}
}