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

Atlas schema generation broken for postgres #774

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mathieu-lemay
Copy link

Explain your user case and expected results

Since PR go-gorm/postgres#285, the migration generation for Atlas fails. This is likely due to the generation using a mock database that doesn't really have the index.

Expected behavior: It should output a SQL script to create the Products table
Actual behavior: It fails with error loading gorm schema: failed to create index with name idx_products_deleted_at

@mathieu-lemay mathieu-lemay changed the title Add test for schema generation issue Atlas schema generation broken for postgres Nov 23, 2024
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