Skip to content

Non-destructive upgrade env command#297

Open
JoeOsborn wants to merge 7 commits intomainfrom
upgrade-env
Open

Non-destructive upgrade env command#297
JoeOsborn wants to merge 7 commits intomainfrom
upgrade-env

Conversation

@JoeOsborn
Copy link
Copy Markdown
Contributor

If you have a database with a bunch of states, saves, instances using old cores, you should run something like this for each old core to clone all the states, saves, instances with new environments referencing the new core.

This will clone every environment which used the old core name and version (this is important to note because e.g. ingest makes a new environment for each work; was that a good idea? IDK), and for each cloned environment it will clone all instances, states, saves, etc referring to the original.

@JoeOsborn
Copy link
Copy Markdown
Contributor Author

Usage is e.g. cargo run --bin gisst-cli -- upgrade-environment fceumm 1.52.0 ../build/cores/fceumm_libretro.json

@JoeOsborn
Copy link
Copy Markdown
Contributor Author

This can be tested before the clippy lints are fixed

Also put back the cores/ endpoint for legacy ambient cores

Such legacy cores probably can't safely be added using the new core
table scheme, so we're kind of stuck with them for the existing gisst deploy
@JoeOsborn
Copy link
Copy Markdown
Contributor Author

Bug: this should set the created_on fields for generated states, replays, saves, instances, environments appropriately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant