-
Notifications
You must be signed in to change notification settings - Fork 697
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
fk constraint already exists error with createMissingTablesAndColumns #934
Comments
I've tried with DSL annotation (for test)
Same result :( |
@Auronake , do you create tables on an empty database or tables already exists? |
@Tapac Managed to reproduce on master branch in CreateMissingTablesAndColumnsTests with a test:
Result: |
JdbcDatabaseMetadataImpl line 174. fromColumnName. The existed constraints are empty, the helper tries to alter table for adding a constraint. |
I've tried the two cases : empty or not database @freedom4live, @Tapac, if the problem is on Master, I hope a quick fix about that :D. I believe in you :D |
Fix foreign key creation in PostgreSQL
Hi ! Have you an update for this merge request ? #936 Thank you ! |
Fix foreign key creation in PostgreSQL Co-authored-by: freedom4live <[email protected]> Co-authored-by: Aleksei Novikov <[email protected]>
Should be fixed in 0.26.1 |
Should be fixed in 0.26.1 |
Hi !
I experiment an error with Exposed 0.25.1 and Postgresql in a Javalin Project in Kotlin when I use createMissingTablesAndColumns
Example Tables :
object UsersTable: IntIdTable()
and
object SpacesTable: IntIdTable() { val userId = reference("userId", UsersTable) }
Then the log :
This log repeat itself 3 or 4 times
Any idea ? Need more information ?
Thank you !
The text was updated successfully, but these errors were encountered: