mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-01-10 07:42:49 +01:00
16 lines
427 B
C#
16 lines
427 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DHT.Server.Database.Sqlite;
|
|
|
|
public interface ISchemaUpgradeCallbacks {
|
|
Task<bool> CanUpgrade();
|
|
Task Start(int versionSteps, Func<IProgressReporter, Task> doUpgrade);
|
|
|
|
public interface IProgressReporter {
|
|
Task NextVersion();
|
|
Task MainWork(string message, int finishedItems, int totalItems);
|
|
Task SubWork(string message, int finishedItems, int totalItems);
|
|
}
|
|
}
|