Skip to content

Refactor PostgreSQL data model with Drizzle - #168

Merged
asselstine merged 1 commit into
mainfrom
feat/drizzle-data-layer
Sep 18, 2026
Merged

asselstine merged 1 commit into
mainfrom
feat/drizzle-data-layer

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Summary

  • add a complete Drizzle schema and relation model for application PostgreSQL data
  • replace destructive job snapshot saves with explicit create, update, enable, and trigger reconciliation operations
  • preserve trigger identity, retire referenced triggers, and treat kind changes as remove-and-add
  • move application-owned OAuth device authorization state into PostgreSQL
  • cascade complete job deletion and remove associated R2 artifacts

Migrations

  • 0004_trigger_lifecycle
  • 0005_oauth_device_authorizations
  • 0006_job_delete_cascade

Verification

  • TypeScript compilation
  • 148 tests across 35 test files
  • API boundary validation
  • Cloudflare deploy dry run
  • migrations applied successfully to an isolated Neon branch cloned from production
  • live schema verification passed on that branch; temporary branch deleted afterward

@github-actions
github-actions Bot enabled auto-merge September 18, 2026 21:06
@asselstine
asselstine disabled auto-merge September 18, 2026 21:07
@asselstine
asselstine added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit c04a107 Sep 18, 2026
2 checks passed
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.

1 participant