Skip to content

Conversation

@medihack
Copy link
Member

@medihack medihack commented Nov 8, 2025

Closes #1461

The index procrastinate_jobs_queue_name_idx was added to schema.sql in v0.11.0 but lacked a corresponding migration. The migration 03.00.00_50_post_cancel_notification.sql tried to rename this index, which failed for users who only used migrations to set up their database.

This fix adds the missing historical migration file at the correct version (00.11.00_04_add_jobs_queue_name_idx.sql) to create the index. This allows the later migration to simply rename it as originally intended.

Successful PR Checklist:

  • Tests
    • (not applicable?)
  • Documentation
    • (not applicable?)

PR label(s):

The index procrastinate_jobs_queue_name_idx was added to schema.sql in
v0.11.0 but never had a corresponding migration. The migration
03.00.00_50_post_cancel_notification.sql tried to rename this index,
which failed for users who only used migrations to set up their database.

This fix adds the missing historical migration file at the correct version
(00.11.00_04_add_jobs_queue_name_idx.sql) to create the index. This allows
the later migration to simply rename it as originally intended.

Fixes procrastinate-org#1461
@medihack medihack requested a review from a team as a code owner November 8, 2025 21:39
@medihack medihack marked this pull request as draft November 8, 2025 21:39
@github-actions github-actions bot added the PR type: bugfix 🕵️ Contains bug fix label Nov 8, 2025
@medihack medihack marked this pull request as ready for review November 9, 2025 01:28
@medihack
Copy link
Member Author

medihack commented Nov 9, 2025

I am not sure if it is as easy as this, or whether we should ignore the failing test (which is done for new migrations, not for retrospectively added ones).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR type: bugfix 🕵️ Contains bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Historical migrations missing CREATE INDEX procrastinate_jobs_queue_name_idx

2 participants