Plugin altering 'account' schema

By jenolan - October 7, 2016

Hi I am tinkering again, I need to create (if not present) an extra filed in the website membership table (if plugin installed).

Is the 'correct' method to simply loadSchema() twiddle the array saveSchema() and then createMissingSchemaTablesAndFields()?

Thanks,
Larry

---
<?= "Jenolan(Larry) :: Coding Since 1973" ?>
Peace and Long Life

By Damon - October 17, 2016

Hi Larry,

I haven't done this before but if you are using a custom accounts table, you can add the extra field into the $schema = array( ) to have it auto created.

You could also add the field into the /data/accounts.ini.php schema file to have it auto created. 

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By jenolan - October 19, 2016

Thanks I will have a gander, have had to stop work on /bin/plex due to a couple of clients having site issues....

Larry

---
<?= "Jenolan(Larry) :: Coding Since 1973" ?>
Peace and Long Life