♻️ File organize system v2
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user