No description
  • TypeScript 62%
  • Vue 37%
  • JavaScript 0.7%
  • CSS 0.2%
  • Dockerfile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-13 22:03:05 -06:00
.vscode Preview the 2025 survey results 2026-01-02 23:11:50 -06:00
app Defer merge queue refresh until after merges commit 2026-11-13 21:54:33 -06:00
drizzle Prevent duplicate Discord delivery and surface syndication warnings 2026-11-13 21:50:45 -06:00
public Change icon? 2025-09-29 22:34:59 -05:00
scripts Run database migrations automatically before server startup 2026-11-13 22:03:05 -06:00
server Run database migrations automatically before server startup 2026-11-13 22:03:05 -06:00
shared Save queue game edits optimistically in the background 2026-11-13 21:32:36 -06:00
tests Run database migrations automatically before server startup 2026-11-13 22:03:05 -06:00
.dockerignore Add dockerfile 2025-08-04 20:50:29 -05:00
.env.example Implement score-based sorting for queues 2026-10-14 22:48:39 -05:00
.gitignore Add sql session files to gitignore 2025-12-28 11:25:08 -06:00
.prettierrc.json Prettier 2025-08-03 13:39:02 -05:00
app.config.ts Switch colors to node 2026-05-20 15:29:17 -05:00
docker-compose.yml Preview the 2025 survey results 2026-01-02 23:11:50 -06:00
Dockerfile Run database migrations automatically before server startup 2026-11-13 22:03:05 -06:00
drizzle.config.ts Prettier 2025-08-03 13:39:02 -05:00
eslint.config.mjs Prettier 2025-08-03 13:39:02 -05:00
nuxt.config.ts Run database migrations automatically before server startup 2026-11-13 22:03:05 -06:00
package-lock.json Implement score-based sorting for queues 2026-10-14 22:48:39 -05:00
package.json Implement score-based sorting for queues 2026-10-14 22:48:39 -05:00
README.md Run database migrations automatically before server startup 2026-11-13 22:03:05 -06:00
tsconfig.json Initial commit 2025-07-23 09:46:22 -05:00
types.ts Implement inbox 2025-10-05 15:22:18 -05:00

plusone

Database migrations

The server applies pending Drizzle migrations before using the database, including in development. Migration failures prevent startup. Simultaneous starts are serialized with a PostgreSQL advisory lock. The Docker image includes the drizzle directory; when running the built server directly, run from the project root and keep that directory alongside .output.

For an existing database whose schema was managed manually, explicitly baseline the migrations already applied before starting the updated server:

node scripts/baseline-migrations.mjs 28

This uses DATABASE_URL (also loaded from .env) and records migrations 0000–0028 in Drizzle's migration journal without executing their SQL. It does not apply later migrations. Only baseline a database whose schema already includes those changes; ordinary server startup never automatically baselines a database.