From 7c9008cd7e78eb133ac2fd637c689a7036131807 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 16 Dec 2024 09:05:54 -0500 Subject: [PATCH] fix: Commit file that was changed --- .../00000027_TaskSchedulerMigration.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Arrowgene.Ddon.Database/Sql/Core/Migration/00000027_TaskSchedulerMigration.cs diff --git a/Arrowgene.Ddon.Database/Sql/Core/Migration/00000027_TaskSchedulerMigration.cs b/Arrowgene.Ddon.Database/Sql/Core/Migration/00000027_TaskSchedulerMigration.cs new file mode 100644 index 000000000..d99366b89 --- /dev/null +++ b/Arrowgene.Ddon.Database/Sql/Core/Migration/00000027_TaskSchedulerMigration.cs @@ -0,0 +1,25 @@ +using System.Data.Common; + +namespace Arrowgene.Ddon.Database.Sql.Core.Migration +{ + public class TaskSchedulerMigration : IMigrationStrategy + { + public uint From => 26; + public uint To => 27; + + private readonly DatabaseSetting DatabaseSetting; + + public TaskSchedulerMigration(DatabaseSetting databaseSetting) + { + DatabaseSetting = databaseSetting; + } + + public bool Migrate(IDatabase db, DbConnection conn) + { + string adaptedSchema = DdonDatabaseBuilder.GetAdaptedSchema(DatabaseSetting, "Script/migration_scheduling.sql"); + db.Execute(conn, adaptedSchema); + return true; + } + } +} +