aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-27 18:38:26 +0800
committercrupest <crupest@outlook.com>2021-04-27 18:38:26 +0800
commit6c9778b55dd8367d38280c66e0f308c5332029ed (patch)
treeb59aaf0194103af93c5a0c5e4e8bfd1b414ac201 /BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs
parenta341819711cda358652ad84b1e507d9559ecabfd (diff)
downloadtimeline-6c9778b55dd8367d38280c66e0f308c5332029ed.tar.gz
timeline-6c9778b55dd8367d38280c66e0f308c5332029ed.tar.bz2
timeline-6c9778b55dd8367d38280c66e0f308c5332029ed.zip
refactor: Refactor is still on...
Diffstat (limited to 'BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs')
-rw-r--r--BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs b/BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs
index 7300ccbd..a38dcb99 100644
--- a/BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs
+++ b/BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs
@@ -7,6 +7,15 @@ namespace Timeline.Services.DatabaseManagement
public interface IDatabaseCustomMigration
{
string GetName();
+
+ /// <summary>
+ /// Execute the migration on database.
+ /// </summary>
+ /// <param name="database">The database.</param>
+ /// <param name="cancellationToken">Cancellation token.</param>
+ /// <remarks>
+ /// Do not create transaction since the migrator will take care of transaction.
+ /// </remarks>
Task ExecuteAsync(DatabaseContext database, CancellationToken cancellationToken = default);
}
}