Skip to content

fix: drop the drizzle migrate service from docker compose - #2176

Merged
spaenleh merged 1 commit into
mainfrom
305-compose-drop-drizzle-migrate
Nov 17, 2026
Merged

spaenleh merged 1 commit into
mainfrom
305-compose-drop-drizzle-migrate

Conversation

@spaenleh

Copy link
Copy Markdown
Member

Summary

Last drizzle leftover from graasp/graasp-web#305: the local compose file still shipped a migrate service on the frozen drizzle image, which knows nothing about migrations written in admin.

 # docker/compose.yml
-# The first time you will have to also start the migration container
-#     docker compose -f docker/compose.yml run ... migrate
+# The first time, migrate the database. The admin app owns the schema:
+#     mise run migrate
+# See "Database and Migrations" in the README.
 services:
   core: ...
   workers: ...
-  migrate:
-    image: public.ecr.aws/graasp/graasp:migrate-v2.2.2
   db: ...

Evidence

  • Before: docker compose run migrate applied drizzle migrations up to v2.2.2, so the database it produced was missing every schema change made in admin since then.
    After: the service is gone. docker compose -f docker/compose.yml config -q passes, and nothing else in the repo referenced it.

Schema check for #305: a fresh database migrated only by admin v0.15.0 matches the 2026-11-12 prod dump (pg_dump --schema-only diff). The only differences are the drizzle history schema (prod only), oban_count_estimate() (Oban Met creates it at runtime), the member_password.member_id NOT NULL that prod got today, and two expressions that mean the same thing but are written differently.

Merge Danger

Door: two-way

Blast Radius: local-dev

Only the local docker compose setup changes. Anyone still running docker compose run migrate now has to use mise run migrate. Deploy and CI are unaffected.

The admin app owns the database schema (graasp/graasp-web#305); point local
setup at `mise run migrate` instead of the frozen migrate-v2.2.2 image.
@sonarqubecloud

Copy link
Copy Markdown

@spaenleh
spaenleh merged commit 92f5d82 into main Nov 17, 2026
13 of 18 checks passed
@spaenleh
spaenleh deleted the 305-compose-drop-drizzle-migrate branch November 17, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant