Skip to content

Create single source of truth for database schema #5570

@chronark

Description

@chronark

There were 2 blips of 500s today, affecting roughly 0.1% of requests for about 5 minutes, caused by mistakes with database schemas.

The database spec is replicated 3 times, which makes problems easy to miss. Make schema.sql the source of truth, use Drizzle generation from that, and document how the setup works.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions