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
trek generate fails when adding two tables that inherit each other. I suppose it's trying to create table2 first, which then refers to table1 which doesn't yet exist.
Steps To Reproduce
Create empty folder and go through trek init
Open the model in pgmodeler
Add schema schemaname
Add table schemaname.table1 and schemaname.table2
Add inheritance relation from table2 to table1
Validate and save.
Run trek generate --stdout
Relevant log output
Failed to run: failed to generate migration statements: failed to generate missing permission statements: failed to apply generated migration: ERROR: relation "schemaname.table1" does not exist (SQLSTATE 42P01)
The text was updated successfully, but these errors were encountered:
Description
trek generate
fails when adding two tables that inherit each other. I suppose it's trying to create table2 first, which then refers to table1 which doesn't yet exist.Steps To Reproduce
trek init
schemaname
schemaname.table1
andschemaname.table2
trek generate --stdout
Relevant log output
Failed to run: failed to generate migration statements: failed to generate missing permission statements: failed to apply generated migration: ERROR: relation "schemaname.table1" does not exist (SQLSTATE 42P01)
The text was updated successfully, but these errors were encountered: