Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 15, 20213 yr Hello! Is it allowed to create a new table using \IPS\Db::i()->createTable() when installing a plugin and remove it using \IPS\Db::i()->removeTable() when uninstalling? I need only several fields and I do not want to switch to application just because of it.
September 16, 20213 yr I would strongly advise to use an application once you have to deal with database tables. 1. It's much easier to maintain the schema via the Application Dev Center, you'll literally only have to set up the fields and the framework will take care of everything else for you. There's no need to create manually any Install, upgrade and uninstall code, like for plugins. 2. Our support tools will try to fix only applications database tables and ignore any broken plugin database tables.