mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
- Close migration DB connections with defer to prevent leaks - Truncate destination tables before migration to avoid duplicates - Wrap migration in transaction for atomicity - Pass DB password via env var instead of CLI args to avoid process list exposure - Improve error messages for MariaDB export/import with alternatives - Update package doc to reflect dual DB support - DRY migration logic with shared migrateAllTables function |
||
|---|---|---|
| .. | ||
| model | ||
| db.go | ||
| db_test.go | ||
| migrate.go | ||