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

fix: Make migrations compatible with PostgreSQL #1411

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

adamantike
Copy link
Collaborator

This change only verifies that Alembic can upgrade and downgrade through all the current migrations. It does not verify that the application works correctly with PostgreSQL.

It also allows setting ROMM_DB_DRIVER as postgresql.

Copy link

github-actions bot commented Dec 30, 2024

Test Results

91 tests   91 ✅  26s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit b9b7a8c.

♻️ This comment has been updated with latest results.

This change only verifies that Alembic can upgrade and downgrade through
all the current migrations. It does not verify that the application
works correctly with PostgreSQL.
@adamantike adamantike force-pushed the fix/postgresql-migrations branch from 1a4fc23 to b9b7a8c Compare December 30, 2024 11:38
r1.platform_id = r2.platform_id
AND r1.id != r2.id
AND (
(r1.igdb_id = r2.igdb_id AND r1.igdb_id IS NOT NULL AND r1.igdb_id != '')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

r1.igdb_id != '' comparison is not needed, as the igdb_id column is Integer. This doesn't fail on MySQL/MariaDB, but PostgreSQL complain because of '' not being a possible value for the column.

@adamantike adamantike merged commit 82e718d into master Dec 31, 2024
8 checks passed
@adamantike adamantike deleted the fix/postgresql-migrations branch December 31, 2024 13:37
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.

2 participants