Skip to content

Commit

Permalink
Merge pull request #660 from pacampbell/task_migration_fix2
Browse files Browse the repository at this point in the history
fix: Commit file that was changed
  • Loading branch information
pacampbell authored Dec 16, 2024
2 parents 3e736df + 7c9008c commit 86fe018
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}
}
}

0 comments on commit 86fe018

Please sign in to comment.