-
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
Not being able to create a FK for a table created in another database schema #701
Comments
Duplicate of #145 |
Sorry, but I beg to differ. This is not a duplicate. At max it's an extension And the issue is: If the name of the table was set with a schema on it, the name of the fk gets a dot (.) on it, which invariably fails the syntax. A FK name cannot contain a dot. This is the problem.
Thank you |
Should be already released |
Great, thanks. |
So I'm trying to create table for authentication on my
postgresql
db.This table should be in a dedicated schema in my database, called, let's say:
authentication
, to be simple. All's good, I can define and create the table by using:The creation of the table is ok on a different schema without the
FK
, but when it defines theFK
, it fails, because it uses the name of the table as suffix for the FK's name.So it's something like
fk_authentication.user_fk_type_id
, which is a no go, since there cannot be a.
on the fk's name and I get a syntax error.So I think of 2 possibilities:
Can I do any of those? or should I approach this in another way?
I'm trying to do both by looking at the
Table.kt
code, but not finding anything that I can use... Is there a workaround?Thank you
The text was updated successfully, but these errors were encountered: