Route table, RouteId column.)RouteDestination.)RouteDestination.RouteId pointing to Route.RouteId.)You can select the parent table from the dropdown as usual.
The parent table does not appear among the dropdown options.
_Workaround:_ You can still add the constraint in the GUI by creating the table without the constraint, and then editing it.
Thanks @noahplusplus, that sounds very bug-like. :innocent:
I've found the problem, but not yet a solution. Each keystroke in the table name text field triggers EditTableDialog::checkInput, which overwrites the old table name from the foreign key combo-box with the new table name using this call:
When the new table name begins as an existing table, when the entered name is exactly equal to the existing table, this one is removed here:
We shouldn't do this update until the table name is definitive, but simply changing textChanged signal by editingFinished makes the application crash. So more changes are needed.
Maybe this is enough for someone to think a solution.
... makes the application crash.
Did you get a backtrace of the crash? It might be that's the thing which needs solving for this to work? :smile: