6 Commits

Author SHA1 Message Date
Sudarshan_Patil_H_J 91d2f58a15 test(database): fix TS compiler warning and ES shebang in tests 2026-06-08 13:15:36 +05:30
Tony Chang acfe33d097 ci: guard against duplicate migration numbers (#1391)
* ci: guard against duplicate migration numbers

Two migration files sharing the same numeric prefix have an ambiguous
apply order under node-pg-migrate and can diverge across environments.

Add a checker (backend/scripts/check-migration-duplicates.js) wired into:
- a new GitHub Actions workflow (.github/workflows/check-migrations.yml)
  running on PRs and pushes to main
- a vitest unit test (tests/unit/migration-duplicate-numbers.test.ts)
- an npm script (migrate:check-duplicates)

The pre-existing duplicates 033 and 047 are grandfathered via an
allowlist; any new collision fails CI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* ci: declare node globals to satisfy eslint no-undef

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-28 23:27:17 +00:00
yaowenc2 4a075606fb fix linter 2026-01-24 21:43:52 -08:00
yaowenc2 53d5ddfe85 address code rabbit 2026-01-24 21:43:52 -08:00
yaowenc2 dd2e5392a0 update to use subhosting 2026-01-24 21:43:52 -08:00
yaowenc2 fe5b27cb40 update function code 2026-01-24 21:43:52 -08:00