I read the Codex and some other tutorials describing the process of creating a new table for WordPress.
I thing that the steps are pretty straightforward; however, I'm encountering a small problem.
I am developing a theme (not a plugin) and I am creating some features which require a new WordPress table.
All the tutorials refer to the case when there is a separate plugin involved which must be activated. In that case, the hook looks something like this:
The problem is that I don't have any plugin to be activated. What kind of hook should I use to make sure that the table is created correct and only once.