Skip to main content
migrations records which database migrations have run. One document is one migration from tools/migrations/. It is written by the adapter of the east migration tool, tools/migrations/lib/adapter.mjs, not by a running service.

Fields

Who Writes It

CE runs yarn run migrations migrate -t server-ce at every container start (server-ce/init_scripts/900_run_web_migrations.sh:4-12; -t server-pro when OVERLEAF_IS_SERVER_PRO=true). Only migrations whose tags include that environment run, so only those get a document here.

Who Reads It

Indexes

Notes

  • Deleting a document makes that migration run again at the next container start, if its tags match.
  • With an auxiliary Mongo cluster (mongo.auxUrl), migrations tagged auxiliary are recorded in the migrations collection of that cluster instead (adapter.mjs:8-15, :64-70). mongo.auxUrl comes from MONGO_AUX_CONNECTION_STRING (tools/migrations/config/settings.defaults.js:19), which is unset by default.
Last modified on November 14, 2026