Skip to content

Commit

Permalink
Merge pull request #730 from stgraber/migrate
Browse files Browse the repository at this point in the history
lxd-to-incus: Add support for later 5.21 LTS releaes
  • Loading branch information
tych0 authored Apr 3, 2024
2 parents 4348087 + d04cef8 commit b1fd17e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/lxd-to-incus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ UPDATE schema SET version=69 WHERE version=73;`)
INSERT INTO certificates (id, fingerprint, type, name, certificate, restricted) SELECT id, identifier, 1, name, json_extract(metadata, "$.cert"), 0 FROM identities WHERE type=2;
INSERT INTO certificates (id, fingerprint, type, name, certificate, restricted) SELECT id, identifier, 2, name, json_extract(metadata, "$.cert"), 0 FROM identities WHERE type=3;
INSERT INTO certificates (id, fingerprint, type, name, certificate, restricted) SELECT id, identifier, 3, name, json_extract(metadata, "$.cert"), 1 FROM identities WHERE type=4;
INSERT INTO certificates (id, fingerprint, type, name, certificate, restricted) SELECT id, identifier, 3, name, json_extract(metadata, "$.cert"), 0 FROM identities WHERE type=6;
INSERT INTO certificates_projects (certificate_id, project_id) SELECT identity_id, project_id FROM identities_projects;`)

// Drop the other tables.
Expand Down
2 changes: 1 addition & 1 deletion cmd/lxd-to-incus/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

var minLXDVersion = &version.DottedVersion{Major: 4, Minor: 0, Patch: 0}
var maxLXDVersion = &version.DottedVersion{Major: 5, Minor: 21, Patch: 0}
var maxLXDVersion = &version.DottedVersion{Major: 5, Minor: 21, Patch: 99}

func (c *cmdMigrate) validate(source source, target target) error {
srcClient, err := source.connect()
Expand Down

0 comments on commit b1fd17e

Please sign in to comment.