Skip to content

feat(migration): SeaORM baseline, Supabase SQL, idempotent DDL#288

Open
CIOI wants to merge 4 commits into
devfrom
docs/migration-track-roles
Open

feat(migration): SeaORM baseline, Supabase SQL, idempotent DDL#288
CIOI wants to merge 4 commits into
devfrom
docs/migration-track-roles

Conversation

@CIOI
Copy link
Copy Markdown
Contributor

@CIOI CIOI commented Apr 21, 2026

Summary

  • SeaORM baseline migrations (m20260421_000001000007) with bundled SQL under packages/api-server/migration/sql/.
  • Supabase migrations: baseline functions, triggers/auth, RLS (supabase/migrations/20260421*).
  • Idempotent DDL for brownfield DBs: IF NOT EXISTS tables/indexes, DO$$ blocks for constraints, failed on post_magazines CHECK (legacy migration aligned).

Notes

  • Apply order: API boot runs SeaORM migrator; then supabase db push for SQL files as needed per env.

Closes: (add issue number in PR description if you have one)

Made with Cursor

CIOI added 4 commits April 21, 2026 15:57
…+ supabase dirs

- Move packages/api-server/migration -> legacy (crate migration_legacy); api-server still depends on migration crate with empty Migrator for supabase-dev baseline work
- Move supabase/migrations SQL -> supabase/legacy; active supabase/migrations is README-only until new SQL is added
- Document paths in AGENT.md, database-summary, supabase CLI guide

Made-with: Cursor
- Split dev schema into m20260421_000001–000007 SeaORM steps with inline SQL bundles\n- Add split_dev_schema.py helper for regenerating step files from dumps\n- Add Supabase migrations: functions (20260421100000), triggers/auth (20260421110000), RLS (20260421120000)\n- Document apply order in api-server and supabase migration READMEs

Made-with: Cursor
- Wrap warehouse ENUMs and constraint/index DDL for safe re-run on brownfield DBs\n- post_magazines CHECK includes failed; legacy migration aligned\n- CREATE TABLE IF NOT EXISTS, OR REPLACE views, index IF NOT EXISTS, DO blocks for constraints

Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
decoded-app Ready Ready Preview, Comment Apr 21, 2026 6:21pm

@cocoyoon
Copy link
Copy Markdown
Member

@claude

@claude
Copy link
Copy Markdown

claude Bot commented Apr 22, 2026

Claude Code is working…

I'll analyze this and get back to you.

View job run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants