How to properly alter the database?

Please, just use PluginStore. Think of the kittens.

Ok, this is good advice, but I wasn’t clear. I meant for something intended to be sent in as a PR for the core system, not a site-specific thing; for those we’d want to alter the database, right?

(Specifically, I was thinking of adding a means to specify an “email subject slug” per category, so emails can be sent with that instead of a category’s full title, but I’m sure I’ll eventually have 12 other unrelated ideas that want to change the schema too, heh)