Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change asset path collation to "C" #1888

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Change asset path collation to "C" #1888

merged 1 commit into from
Mar 7, 2024

Conversation

jjnesbitt
Copy link
Member

@jjnesbitt jjnesbitt commented Mar 6, 2024

Follow up to #1885

While the C.utf8 collation seemed to work locally and in CI, that collation doesn't seem to exist in the production database, and so that migration failed in production. However the basic C collation is present across all of these environments (all postgres environments, detailed here) and as far as I can tell, seems to operate in largely the same way. If/when we upgrade our database version in heroku, we could perhaps change back to C.utf8, if it mattered.

This fix modifies the last migration, since the deployment failed in staging/production. If I were to create a new migration, I believe it would again fail, since it would have to first apply the failing migration to reach the fix.

@jjnesbitt jjnesbitt added patch Increment the patch version when merged release Create a release when this pr is merged labels Mar 7, 2024
Copy link
Member

@mvandenburgh mvandenburgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you confirm that the Heroku postgres instance has this collation available?

@jjnesbitt
Copy link
Member Author

Did you confirm that the Heroku postgres instance has this collation available?

Yes, both staging and prod. For good measure, I locally pulled the exact postgres version running in prod. I could reproduce the failed migration from #1885, and once changing the collation to C, the migration succeeded.

@jjnesbitt jjnesbitt merged commit e55df88 into master Mar 7, 2024
11 checks passed
@jjnesbitt jjnesbitt deleted the 1885-hotfix branch March 7, 2024 17:51
@dandibot
Copy link
Member

dandibot commented Mar 7, 2024

🚀 PR was released in v0.3.79 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants