Skip to content

Won't be useful unless you migrate from pledge to recurring contrib

License

Notifications You must be signed in to change notification settings

tttp/migratesepa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

migrate

drush civicrm-api contribution.migrate option.limit=10000

There will be log file in the CiviCRM ConfigAndLog folder with the name aivl_migrate_log_(YmdhIs)

cleanup

To delete duplicate mandates (based on the same source id, the pledge id in our case) delete m1 from civicrm_sdd_mandate m1, civicrm_sdd_mandate m2 where m1.id<m2.id and m1.source=m2.source;

delete r from civicrm_contribution_recur as r left join civicrm_sdd_mandate as m on m.entity_table="civicrm_contribution_recur" and m.entity_id=r.id where m.id is null;

select * from civicrm_contribution_recur as r left join civicrm_sdd_mandate as m on m.entity_table="civicrm_contribution_recur" and m.entity_id=r.id where m.id is null limit 1;

About

Won't be useful unless you migrate from pledge to recurring contrib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages