sofie_cli/db_command.rs
1use std::path::Path;
2use std::process::ExitStatus;
3
4use crate::dev_command::run_development;
5use crate::gen_command::GenError;
6
7/// Run through the app's own binary, the only one embedding the migrations; production binaries leave the command out.
8pub fn fresh_database(root: &Path) -> Result<ExitStatus, GenError> {
9 run_development(root, &["db", "fresh"])
10}