I have been using Bob Ray's very useful extra ClassExtender to create some additional user fields in a community website I am working on.
https://bobsguides.com/classextender-class.html
When you first run ClassExtender you edit the following chunks and then run the 'Extend modUser' snippet.
- MyExtUserSchema
- MyExtraUserFields
This process creates the 'ext_user_data' table into which all of your specified fields are added.
My (very simplistic) understanding is that the 'MyExtUserSchema' chunk is responsible for the table and field creation in the MODX database and the 'MyExtraUserFields' chunk creates the fields in your User admin area. I know it does some other magic.
If you subsequently need to add more fields to the table it is necessary to add the fields directly to the 'ext_user_data' table using either the command line or something like phpMyAdmin as 'Extend modUser' will not alter an existing 'ext_user_data' table.
So, after a rather long introduction, my actual question is:
When adding additional fields after the initial run of 'Extend modUser', if I add my fields directly into my 'ext_user_data' table and then run the 'Extend modUser' again do I need to add those additional fields to the 'MyExtUserSchema' chunk, or is it sufficient add them only to the 'MyExtraUserFields' chunk.
MODX: 2.7.1
PHP: 7.2.13
ClassExtender: 2.1.0pl