mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-22 19:25:56 +00:00
Phase 6a: tracked SQL migration runner (ledger, baseline from core updates table, destructive backup gate, ordered by git introduction)
Verified on the fixture: 608 real core/module SQL scripts applied through the runner, world reaches 'ready', account created over RA with administrator rights. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
157ba3e743
commit
d0794d49f8
6 files changed
+447
-1
No files matched your search
@@ -0,0 +1,8 @@
|
||||
//! Read-only helper for a DISPOSABLE fixture: run one query. usage: sqlq <fixture> <sql>
|
||||
fn main() {
|
||||
let a: Vec<String> = std::env::args().skip(1).collect();
|
||||
assert!(a[0].to_lowercase().contains("fixture"), "refusing: not a fixture folder");
|
||||
let root = std::path::Path::new(&a[0]);
|
||||
let out = coa_core::backup::with_database(root, |db| db.query(&a[1])).expect("query");
|
||||
println!("{out}");
|
||||
}
|
||||
Reference in new issue
Block a user