Add SQLite migration foundation #36
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#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal
Provide the SQLite configuration and migration runner foundation for the Slugkit template website without adding feature-specific tables yet.
Spec:
docs/web-specs/01-database-schema-migrations.mdScope
This is infrastructure/foundation work. Feature tables should be added later by the small vertical slice that implements the manually testable feature needing those tables.
Requirements
schema_migrationstable..env.example.docs/CONTRIBUTING.mdanddocs/CODE_STANDARDS.md.Out of scope
Acceptance criteria
schema_migrations..env.exampledocuments database configuration.Dependencies
Add template database and migrationsto Add SQLite migration foundationSynced from todu comment by @todu on 2026-05-22T13:16:22.537Z
PR Review: Approved
PR: #42
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.
Synced from todu comment by @todu on 2026-05-22T13:18:26.641Z
Closing Summary
PR #42 merged: #42
Acceptance criteria evidence:
db:migratecreates the database file and parent directory, verified by tests and manual smoke.schema_migrations: met — runner createsschema_migrationsand records applied fixture migrations in tests.db:statusreports applied and pending migration counts..env.exampledocuments database configuration: met — root and template env examples documentDATABASE_PATH.make check,./scripts/pre-pr.sh, PR CI, and main push CI passed.Readiness: READY