I’m beginning to write wordpress plugins, and I’ve found a situation where I need to create tables to continue. Can someone point to a decent tutorial on modifying WordPress’s database?
Their usually excellent documentation seems lacking on this topic.
In WP, most plugins don’t create new tables, but use the “wp_options” table, even when a new table would be “natural”.
For example, the “WP acronyms” plugin. A table with 2 columns (acronym and definition) would be natural. But this plugin stores the acronyms in a single row of the “wp_options” table. When data is necessary, the content of this row is parsed and the fields are extracted (using a delimiter). You could consider using the same method.