-
My goal:
Occasionally, new columns need to be added to the query which is set as the data source for a table component. This should have no affect on the table except for the new column being added. -
Issue:
When a new column is added to the query, the primary key field is removed from the table as soon as the query is saved and run. Even if the new column is added to the end of the query. This is done almost silently as there is no warning and the user does not notice unless they are watching for it.
Based on the releases compare code, the primary key field is using an ID for the column that should be the primary key. When the desired primary key is manually picked again, that line of the code is no longer marked as a change. This makes me think Retool should be able to keep this column selected.
- Steps I've taken to troubleshoot:
This appears to only take place when a column is added as an ' Columns automatically updated' function is automatically called. Removing columns has no affect on the primary key.