2022-01-21 11:19:51 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NDB.Infrastructure.DatabaseMigration.Models
|
|
|
|
|
{
|
2022-01-22 00:48:17 +02:00
|
|
|
|
public class MigrationThumbprint
|
2022-01-21 11:19:51 +02:00
|
|
|
|
{
|
|
|
|
|
public MigrationSignature[] MigrationSignatures { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-22 00:48:17 +02:00
|
|
|
|
public class MigrationSignature
|
2022-01-21 11:19:51 +02:00
|
|
|
|
{
|
|
|
|
|
public DateTime MigrationDate { get; set; }
|
|
|
|
|
public string MachineName { get; set; }
|
|
|
|
|
public MigratedVersion[] MigratedVersions { get; set; }
|
|
|
|
|
public string LastVersion { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-22 00:48:17 +02:00
|
|
|
|
public class MigratedVersion
|
2022-01-21 11:19:51 +02:00
|
|
|
|
{
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
public string[] Scripts { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-22 00:48:17 +02:00
|
|
|
|
public class ScriptPack
|
2022-01-21 11:19:51 +02:00
|
|
|
|
{
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
public Version Version { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|