mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-09 20:02:34 +02:00
Mirror core's DB layout at the module level: one master database.sql (full current schema), one database_drop.sql (teardown), and forward-only migrations/<semver>.sql deltas. ModuleMigrator gains install()/uninstall(); up() reads migrations/*.sql; down() removed. - watch: database.sql (delete_missing folded into watch_folders), database_drop.sql, migrations/1.0.1.sql; drop 1.0.0.up/down.sql; getVersion() -> 1.0.1 (matches module.json). - Move core migration 004_add_watch_delete_missing.sql into the watch module. - installModule no longer wraps the DDL migration in a transaction: MySQL/MariaDB implicitly commit DDL, so the wrapping rollback() only masked the real SQL error. - syncBundledModules retries a previously-failed install (skips only admin-disabled) so `console.php status` self-heals.