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
commit2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8 (patch)
tree36ef7044778eb0f660d02d08b57c4d0a143b9865 /BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs
parentdeb02d10e6139bb74a63343e2a8b70fee11bec22 (diff)
downloadtimeline-2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8.tar.gz
timeline-2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8.tar.bz2
timeline-2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8.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);
}
}