feat(db): own a dedicated Postgres schema and ship SQL migrations with migrate and export commands
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- postgresql, sql, typescript
- Domain
- databases
Research direction
Start by reading the existing sequelize-cli migration chain and the schema setup around assertSchemaCurrent; the issue does not name specific files or tests. The work spans configurable schema ownership, SQL migration conversion and upgrade compatibility, migration execution and export formats, plus documentation. Done means these paths work together for existing and new deployments and the listed ORM integrations are documented.
Written by the indexing model from the issue text.
Description
Part of fells-code/seamless-auth-api#371.
Problem
The API's tables live in the default schema, alongside whatever the adopter's app owns. Adopters sharing a database with their app hit ORM drift detection (prisma migrate dev sees unknown tables and offers a reset; drizzle-kit needs a schemaFilter). Migrations are sequelize-cli .cjs files that only this repo's tooling can run.
Proposal
- Tables in a configurable schema (default
seamless_auth) viasearch_path, with the migrations table inside it - Plain numbered SQL as the migration source of truth, converted from the existing sequelize-cli chain, with an upgrade path for existing deployments
- Run on boot or through a
migratecommand for teams that do not run DDL at boot;assertSchemaCurrentkeeps its role -
migrations export --format prisma|drizzle|knex|flyway|rawfor organisations that review every DDL change - Docs: one-line ORM config to ignore the schema, and referencing users by ID
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 2
- Avg merge
- 11h 40m
- Merged PRs (30d)
- 104
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fells-code/seamless-auth-api
-
easy P2 v0.23
Difficulty 4/5 Over a week Newbie friendliness 8/100
fells-code/seamless-auth-api#561 ·
Maintainers usually reply within 1 day
-
epic P1 security v0.23
Difficulty 5/5 Over a week Newbie friendliness 8/100
fells-code/seamless-auth-api#558 ·
Maintainers usually reply within 1 day
-
P1 security v0.23
Difficulty 3/5 Half a day Newbie friendliness 55/100
fells-code/seamless-auth-api#553 ·
Maintainers usually reply within 1 day
-
epic P2 v0.23
Difficulty 5/5 Over a week Newbie friendliness 5/100
fells-code/seamless-auth-api#551 ·
Maintainers usually reply within 1 day
-
P2 secure v2.1
Difficulty 5/5 Over a week Newbie friendliness 25/100
fells-code/seamless-auth-api#512 ·
Maintainers usually reply within 1 day
All issues in fells-code/seamless-auth-api
Similar issues
-
desktop v3 windows
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
esengine/DeepSeek-Reasonix#15016 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
readest/readest#7413 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement good first issue priority: medium size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
content triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eliasstravik/herdr-projects#788 ·