Skip to content

Conversation

@mancalvo
Copy link
Contributor

Description

Run init.sql on every migrate up command to ensure all databases are created before migrations run.

Task Context

What is the current behavior?

When running draft local:migrate:up, if databases don't exist, the migration fails because the target database is missing.

What is the new behavior?

The init.sql script is executed before running migrations on up commands, ensuring all databases exist before attempting migrations.

Additional Context

This simplifies the database creation logic by relying on init.sql which already handles creating databases idempotently.

@mancalvo mancalvo merged commit edd007f into main Jan 21, 2026
2 checks passed
@mancalvo mancalvo deleted the chore/init-on-migrations branch January 21, 2026 21:16
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.

3 participants