multi: switch on graph SQL migration

In this commit, the graph SQL migration is added to the production
build.
This commit is contained in:
Elle Mouton
2025-08-15 13:41:36 +02:00
parent 3751d7a6b6
commit 9ce14371e1
6 changed files with 69 additions and 97 deletions

View File

@@ -78,6 +78,20 @@ var (
Version: 8,
SchemaVersion: 7,
},
{
Name: "000008_graph",
Version: 9,
SchemaVersion: 8,
},
{
Name: "kv_graph_migration",
Version: 10,
SchemaVersion: 8,
// A migration function may be attached to this
// migration to migrate KV graph to the native SQL
// schema. This is optional and can be disabled by the
// user if necessary.
},
}, migrationAdditions...)
// ErrMigrationMismatch is returned when a migrated record does not

View File

@@ -2,19 +2,4 @@
package sqldb
var migrationAdditions = []MigrationConfig{
{
Name: "000008_graph",
Version: 9,
SchemaVersion: 8,
},
{
Name: "kv_graph_migration",
Version: 10,
SchemaVersion: 8,
// A migration function may be attached to this
// migration to migrate KV graph to the native SQL
// schema. This is optional and can be disabled by the
// user if necessary.
},
}
var migrationAdditions []MigrationConfig