amal66 lays the groundwork for safer database upgrades

The fork begins turning its database setup into a managed upgrade history, a meaningful step for teams running the product beyond a one-off local install.

infrastructuresecurity

amal66 has introduced a formal migration record for Supabase, the hosted database platform used to store application data. Instead of treating the database structure as a static snapshot, future changes can be tracked and applied in sequence.

The follow-up also ties user records to UUID-based identifiers, strengthening the relationship between users and their data. That is useful housekeeping for a deployed legal product, where identity consistency matters as usage grows.

There is an important caveat: this is groundwork, not a proven upgrade route for existing installations. Teams with a live database would want to test the transition carefully before applying the new baseline.

So what Legal-tech teams considering a maintained deployment should watch this fork if they need database changes to become more predictable, but should verify the migration path before relying on it.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from amal66/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
c72b8c74 feat(chapter-03): add Supabase migrations as database history Amal 2026-05-24 ↗ GitHub
commit body
Chapter: 03 - Database evolution.

Plain-English map:
Introduce Supabase CLI configuration and timestamped migrations so database
changes can be reviewed, applied, and repeated over time.

Why it matters:
A single schema file shows what the database looks like today, but not how it
got there. Migrations tell future maintainers when and why the shape changed.

Principle:
Schema changes should be versioned like application code. Existing deployments
need an incremental path instead of a one-shot reset.

Precedent borrowed:
The fork report's Docker/local-development cluster, Supabase practice, and
upstream PR #113's database-integrity work.

Upstream base: willchen96/mike@d39f580.
Original local commit: bc72e34.
5b82eff9 fix(chapter-30): convert user IDs to UUID foreign keys Amal 2026-05-24 ↗ GitHub
commit body
Chapter: 30 - Database identity integrity.

Plain-English map:
Convert nine `user_id` columns from text to UUID and attach them to Supabase
Auth users with foreign keys.

Why it matters:
Supabase user IDs are UUIDs. Storing them as plain text allows invalid values
and orphaned rows that the database cannot protect against.

Principle:
Let the database enforce identity shape and relationships.

Precedent borrowed:
Upstream PR #113.

Upstream base: willchen96/mike@d39f580.
Original local commit: 5c28df3.

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-2003.md from inside the repo you want the changes in.

⬇ Download capture-thread-2003.md