Skip to content

chore: drop unapplied SQL trees and label db-migrate - #89

Draft
tomdmeredith wants to merge 1 commit into
mainfrom
cursor/nightly-cleanup-abandoned-sql-1f79
Draft

tomdmeredith wants to merge 1 commit into
mainfrom
cursor/nightly-cleanup-abandoned-sql-1f79

Conversation

@tomdmeredith

Copy link
Copy Markdown
Collaborator

Summary

Propose-only cleanup. Do not merge from this draft.

Deletes SQL trees that nothing applies:

  • Root migrations/ (0003_agent_identity.sql, 0004_provisioning_flows.sql, 0005_proxy_metrics.sql). These were not referenced by Make, CI, tests, or docs. 0003_agent_identity.sql seeded plaintext API tokens.
  • packages/api/db/migrations/ (0001_init.sql and 0002_score_engine.sql match supabase/migrations/; 0003_probe_runner.sql and 0012_failure_modes.sql are unused siblings). ORM models in packages/api/db/ stay.

make db-migrate is unchanged as a command: it still runs psql against docker-compose Postgres on :54322 with supabase/migrations/0001_init.sql. The Makefile and README now label that target as local bootstrap only. Live schema history remains supabase/migrations/ plus packages/api/migrations/.

Left in place: one-shot scripts, zendesk_support_executor, in-memory tx-hash replay, the identity shim, redis_url, and ORM models. No secrets files and no dependency bumps.

Verification

  • rg finds no remaining references to the deleted filenames (the identity-shim tests still use their own fixture token strings; those tests were not edited).
  • make -n db-migrate prints the bootstrap label and applies only supabase/migrations/0001_init.sql.
  • README Development now describes the same bootstrap boundary. No other doc claimed db-migrate applied the deleted trees.
  • packages/api/db/models.py, client.py, and repository.py are untouched.

Open drafts #79, #81, #82, #83, #85, #86, and #87 do not touch these paths.

Open in Web Open in Cursor 

Remove the root migrations/ seed scripts and the unused packages/api/db/migrations copies. Label make db-migrate as a local bootstrap of supabase/migrations/0001_init.sql; live history stays supabase/migrations/ plus packages/api/migrations/.

Co-authored-by: tomdmeredith <tomdmeredith@users.noreply.github.com>
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
rhumb Ready Ready Preview Sep 29, 2026 11:37am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — d575db4d Deployed Sep 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants