[#42] refactored profile management

This commit is contained in:
B. Endres 2022-05-11 21:37:37 +02:00
parent 62399657e7
commit fd47b91b65
2 changed files with 58 additions and 49 deletions

View file

@ -12,6 +12,9 @@ class CRM_Twingle_Upgrader extends CRM_Twingle_Upgrader_Base {
public function install() {
// create a DB table for the twingle profiles
$this->executeSqlFile('sql/civicrm_twingle_profile.sql');
// add a default profile
CRM_Twingle_Profile::createDefaultProfile()->saveProfile();
}
/**