Constellation-Labs / euclid-development-environment

Quickly spin up basic dev environments to build local metagraph projects with our extendable base.
Apache License 2.0
4 stars 13 forks source link

Adding euclid migrations #32

Closed IPadawans closed 5 months ago

IPadawans commented 5 months ago

Looks good in general. I don't see anywhere that the local euclid.json file is updated on each update. Is that happening somewhere?

I've created the migrations script, inside the scripts folder. Right now we only have the condition to run if the version field is not present in euclid.json We will add the conditions to tun migrations on this run_migration command. This command is called on the hydra update function I've also added a check that if user runs the common commands, such as destroy and start and the euclid.json does not contains the version field, we will trigger a run_migration too