You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have to manually apply the migrations in advance to make sure it compiles:
diesel migration redo
diesel migration run
Or the build will fail, as it relies on definitions in the schema.rs file, which is auto-populated when migrations are ran.
The intended goal is for the main binary to be self-contained and not rely on running an external CLI command.
For release builds, it isn't a big problem, since it's not a problem to do it manually and embed everything into the compiled binary (at least I think we can pre-bake the binary).
The text was updated successfully, but these errors were encountered:
The only problem with this one is that it runs on every build, making it too burdensome. Need to find the options to make it only run when the relevant files change.
meee-low
changed the title
Find a way to make sure it's only run if the schema is correct.
Find a way to make sure it's only build if the schema is correct.
Oct 9, 2023
Currently we have to manually apply the migrations in advance to make sure it compiles:
Or the build will fail, as it relies on definitions in the schema.rs file, which is auto-populated when migrations are ran.
The intended goal is for the main binary to be self-contained and not rely on running an external CLI command.
For release builds, it isn't a big problem, since it's not a problem to do it manually and embed everything into the compiled binary (at least I think we can pre-bake the binary).
The text was updated successfully, but these errors were encountered: