Are custom tables in the database overwritten when WordPress is updated to new versions?

I'm relatively new to customising WordPress and I am unsure what happens to custom tables that are manually added to the database when WordPress is updated to a new version. Are custom tables deleted when updating WordPress? Is the data in custom tables overwritten? I have been asked to import data from a database external to WordPress and display that data on the front end. Many thanks in advance.

Topic database updates Wordpress

Category Web


During a WP 'core' update that happens to modify the database, I believe that there is no 'overwrite' of tables or removing tables in the database.

If you add a new table to the database, that table will 'survive' the next WP core upgrade.

You'll only lose data if you reinstall from scratch, and specify another WP table name. But there would be few reasons to do that.

A plugin or theme will make some changes to the tables. A plugin might have options that are stored in a table. And their upgrade might add/modify one of their own tables, but not the WP-based ones.

Updates are good to do, IMHO. I check for core/themes/plugin updates daily, and install daily when needed.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.