Delete a table and custom query when data source is Mysql #11232
-
Is there a way to remove a table that we don't need to be synced or has been deleted from Mysql db from a synced Mysql datasource? Version Self host: 2.5.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @gmentzik, You don't have to delete tables from the source to remove them. All you need to do is refetch them and deselect the ones you don't want added to your Budibase base instance. I've attached a gif below showing this; This should work with any all the query based data sources e.g. MySQL, MsSQL, postgres etc. I believe the version require is 2.8.2 and up. As for your second question you can also delete queries, simply hover over the query, click the ellipsis I hope this helps. |
Beta Was this translation helpful? Give feedback.
Hey @gmentzik,
I've found the issue that was created around this it seems to have been fixed: #10193. Additionally, when testing and refetching tables that had relationships/formulas it didn't seem to do anything (the formula and relationship stayed).
The only way you will loose a formula/relationship is when you deselect a table and remove it from being fetch, deselecting an refetching deletes all references of that table on Budibase. This means anything added will be remove and thus needs re-added.
The above is intended behaviour, if this is not the way you wish for it to work I'd recommend creating a feature request and explain in detail how you wish it to work instead.
The docs have a…