I think its better to do migrations like the polls plugin. I created a migration and model generator for plugins: GitHub - spirobel/discourse at plugin_model_and_migrations It puts the migration files at the same spot like in the polls plugin.
spirobel
9
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| New columns in directory (/users) | 6 | 2847 | October 16, 2019 | |
| Where can I view the use of PluginStoreRow? | 3 | 908 | April 3, 2018 | |
| Best convention for custom plugin DB data for 2021? | 4 | 662 | March 17, 2021 | |
| User page with custom data from external DB | 5 | 3136 | January 26, 2017 | |
| Connecting to database with a plugin | 3 | 1998 | November 2, 2016 |