Add SQLite migration foundation #42
No reviewers
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-69937fe4-sqlite-migrations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
schema_migrations, deterministic SQL discovery, idempotent apply, and status reporting.db:migrateanddb:statusscripts for the template site.DATABASE_PATHand the policy that feature-specific tables are added by future manually testable vertical slices.Scope
This PR intentionally adds no feature tables. Posts/tags/auth/social/media tables should be introduced by the future vertical feature slice that implements manually testable behavior needing those tables.
Testing
make check./scripts/pre-pr.shDATABASE_PATH=/tmp/slugkit.sqlite npm run db:migrate --workspace @slugkit/template-siteandDATABASE_PATH=/tmp/slugkit.sqlite npm run db:status --workspace @slugkit/template-siteTask: #task-69937fe4
PR Review: Approved
Summary
Reviewed PR #42 at commit
52a64d9. The PR adds a foundation-only SQLite migration setup using Node's built-innode:sqlite, with no feature-specific tables. It includes database path configuration, foreign-key-enabled connections, migration discovery/application/status tracking viaschema_migrations, template scripts fordb:migrateanddb:status, isolated temp-database tests, and documentation for the vertical-slice migration policy.Acceptance Criteria
schema_migrations..env.exampledocuments database configuration.make check,./scripts/pre-pr.sh, manual migrate/status smoke, and Forgejo CI all passed.Blocking Issues
None.
Warnings
node:sqlite. This is acceptable for the foundation because the project already targets Node 24 and avoiding native SQLite dependencies keeps CI fast and reliable.Verdict
Approved for merge.