diff options
author | crupest <crupest@outlook.com> | 2021-04-27 18:38:26 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 18:38:26 +0800 |
commit | 2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8 (patch) | |
tree | 36ef7044778eb0f660d02d08b57c4d0a143b9865 /BackEnd/Timeline/Services/DatabaseManagement/IDatabaseCustomMigration.cs | |
parent | deb02d10e6139bb74a63343e2a8b70fee11bec22 (diff) | |
download | timeline-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.cs | 9 |
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);
}
}
|