You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
If table is not fererenced by other table, the result is always correct.
If I make both tables reference each other, the first table in autogenerate is alway incorrect.
ALTER TABLE test.account1 ADD FOREIGN KEY (id) REFERENCES test.account2(id);
I guess the listen hook migth fail with foreign keys, not sure since havn't dig into code much.
Have a nice day!
The text was updated successfully, but these errors were encountered:
Describe the bug
There is a probability that serial column was not detected.
This can happen when the table is referenced by another table.
Expected behavior
The result of autogererate should't contain server default for column id.
To Reproduce
Error
It will produce two outputs and the first one is incorrect.
Versions.
Additional context
If table is not fererenced by other table, the result is always correct.
If I make both tables reference each other, the first table in autogenerate is alway incorrect.
I guess the listen hook migth fail with foreign keys, not sure since havn't dig into code much.
Have a nice day!
The text was updated successfully, but these errors were encountered: