Skip to content

Implement infrastructure for migration from 25.1 to 26.1 #17

@kleijn

Description

@kleijn
  • Change the database version number:
Riskeer.Common.Util.ProjectVersionHelper.cs
private const string currentDatabaseVersion = "26.1";
  • Create a migration script (see this page for instructions) and add it as an Embedded Resource to {RiskeerSolution}\Riskeer\Migration\src\Riskeer.Migration.Core\EmbeddedResources
  • Create a correctly versioned copy of the former DatabaseStructure{version}.sql and add it as an Embedded Resource to {RiskeerSolution}\Riskeer\Migration\src\Riskeer.Migration.Core\EmbeddedResources
  • Fix/adapt/extend the following tests: ProjectVersionHelperTest, MigrationIntegrationTest, ProjectMigratorTest, ProjectFileMigratorTest and StorageMigrationIntegrationTest
  • Add a test specifically to test the new migration script
  • Adapt outdated Riskeer projects (see step 6 of this page)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions