♻️ File organize system v2

This commit is contained in:
2026-01-10 14:34:53 +08:00
parent cb04e53b7e
commit 8177bda232
7 changed files with 139 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
using DysonNetwork.Drive;
using DysonNetwork.Drive.Startup;
using DysonNetwork.Drive.Storage;
using DysonNetwork.Shared.Auth;
using DysonNetwork.Shared.Http;
using DysonNetwork.Shared.Registry;
@@ -38,6 +39,10 @@ using (var scope = app.Services.CreateScope())
{
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
await db.Database.MigrateAsync();
// Run one-time migration
var migrationService = scope.ServiceProvider.GetRequiredService<FileMigrationService>();
await migrationService.MigrateCloudFilesAsync();
}
app.ConfigureAppMiddleware();