14 lines
432 B
C#
14 lines
432 B
C#
|
|
namespace Theriapolis.Core.Persistence.SaveMigrations;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Single-step migration from one schema version to the next. Migrations
|
||
|
|
/// chain — Migrations.MigrateUp finds a path from header.Version to
|
||
|
|
/// C.SAVE_SCHEMA_VERSION and applies each step in order.
|
||
|
|
/// </summary>
|
||
|
|
public interface ISaveMigration
|
||
|
|
{
|
||
|
|
int FromVersion { get; }
|
||
|
|
int ToVersion { get; }
|
||
|
|
void Apply(SaveHeader header, SaveBody body);
|
||
|
|
}
|