mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-13 11:38:33 -05:00
fixed the bugs related to relocating db files for restore (#414)
* fixed the bugs related to relocating db files for restore
This commit is contained in:
@@ -56,6 +56,32 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Database file info
|
||||
/// </summary>
|
||||
public class RestoreDatabaseFileInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// File type (Rows Data, Log ...)
|
||||
/// </summary>
|
||||
public string FileType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Logical Name
|
||||
/// </summary>
|
||||
public string LogicalFileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Original location of the file to restore to
|
||||
/// </summary>
|
||||
public string OriginalFileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The file to restore to
|
||||
/// </summary>
|
||||
public string RestoreAsFileName { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restore Plan Response
|
||||
/// </summary>
|
||||
@@ -79,7 +105,7 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
|
||||
/// <summary>
|
||||
/// The db files included in the backup file
|
||||
/// </summary>
|
||||
public IEnumerable<string> DbFiles { get; set; }
|
||||
public IEnumerable<RestoreDatabaseFileInfo> DbFiles { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Server name
|
||||
|
||||
Reference in New Issue
Block a user