Something went wrong. Try again.
Barazo AppView backend barazo.forum
Something went wrong. Try again.
feat(db): run Drizzle migrations automatically on API startup (#97) master
Fresh deployments previously required manual schema setup because the database was built with drizzle-kit push (no migration tracking). This caused 500 errors when new columns were missing. The API now runs all pending Drizzle migrations before opening the connection pool, using a dedicated single-connection client that is closed immediately after. The Dockerfile copies the drizzle/ folder into the production image so migrations are always available.
Author Guido X Jansen Committer GitHub Date (Feb 28, 2026, 12:34 PM UTC) Commit a3fa0db1 a3fa0db10c9f5ba2774b2bc215677100d90f0f86 Parent f1556a2c f1556a2cefc266afc84828607dcf1e189e145c3a