Commit Graph

11 Commits

Author SHA1 Message Date
Hayyan Hajwani 9298ec7cdb fix(setup): correct month index and zero-pad database backup file names
Backup names were built inline from Date#getMonth, which is zero-indexed, so a
backup taken on 12 September 2026 was written as db_2026-8-12_20-35-56.sqlite.
No field was zero-padded either, giving names like db_2026-8-12_20-36-2.sqlite.

Extract formatBackupTimestamp into server/lib and use it from both places that
built the string: the backupDb helper in migrationsSqlite.ts and the inline copy
in the 1.0.0-beta9 setup script. Padding every field also makes the names sort
lexicographically in the order the backups were taken.

Adds tests covering both reported names, single-digit padding and sort order.
Reverting the helper to the old formula fails them with the exact name from the
report.
2026-09-16 13:46:57 +05:30
Owen be0dd65557 Update imports 2026-09-03 11:35:28 -04:00
Owen f9b03943c3 Format all files 2025-12-09 10:56:14 -05:00
miloschwartz 47ac5875f3 change digpangolin.com to pangolin.net 2025-10-18 11:51:09 -07:00
Owen 5d34bd82c0 Adjust const one more time 2025-08-23 15:36:19 -07:00
Owen 32ba17cf91 Fix linter errors 2025-08-23 15:26:43 -07:00
Owen 55b4a9eddb Merge branch 'main' into dev 2025-08-10 10:16:47 -07:00
miloschwartz 84268e484d update docs links 2025-08-01 22:34:02 -07:00
copilot-swe-agent[bot] 27ac204bb6 Fix variables incorrectly changed from let to const - revert to let where variables are reassigned
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
2025-07-28 17:43:40 +00:00
copilot-swe-agent[bot] 2259879595 Fix ESLint issues: prefer-const warnings and missing semicolons
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
2025-07-22 19:07:43 +00:00
miloschwartz 2cca561e51 support postgresql as database option 2025-06-04 12:02:07 -04:00