Skip to content

Add database migration system#2

Merged
macronom merged 1 commit into
mainfrom
feature/migrations
Jul 14, 2026
Merged

Add database migration system#2
macronom merged 1 commit into
mainfrom
feature/migrations

Conversation

@macronom

Copy link
Copy Markdown
Owner

sql/schema.sql stays the always-current full schema for fresh installs; schema changes additionally ship as delta files in sql/migrations/, applied and tracked (schema_migrations) by the new bin/migrate.php. Includes a Migrator class with a quote/comment-aware SQL statement splitter, unit tests for the pure parts, and updated setup docs.

sql/schema.sql stays the always-current full schema for fresh installs;
schema changes additionally ship as delta files in sql/migrations/,
applied and tracked (schema_migrations) by the new bin/migrate.php.
Includes a Migrator class with a quote/comment-aware SQL statement
splitter, unit tests for the pure parts, and updated setup docs.
@macronom
macronom merged commit af12dec into main Jul 14, 2026
2 checks passed
@macronom
macronom deleted the feature/migrations branch July 14, 2026 17:10
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