Convert the type on the UserJob entity to be a string
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 28 Jun 2022 04:23:56 +0000 (16:23 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 28 Jun 2022 19:54:07 +0000 (07:54 +1200)
commitd2b81f5aacdc3ae28412861cbd691e503617a236
treec93ce9d32b8e09c3d3a9f9deaf7fe0ce735aa734
parentb03e69bb1f722c3271f414cb6f8b81473d819fb9
Convert the type on the UserJob entity to be a string

Currently we are storing a numeric ID - however if we
permit non-core classes to register types we find numeric ids
quickly become hard to manage as uninstalling an extension could
change the id. This switches to using a string type
15 files changed:
CRM/Core/BAO/UserJob.php
CRM/Core/DAO/UserJob.php
CRM/Import/DataSource.php
CRM/Import/Forms.php
CRM/Import/Parser.php
CRM/Upgrade/Incremental/php/FiveFiftyOne.php
Civi/UserJob/UserJobInterface.php [new file with mode: 0644]
sql/civicrm_generated.mysql
tests/phpunit/CRM/Activity/Import/Parser/ActivityTest.php
tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php
tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php
tests/phpunit/CRM/Member/Import/Parser/MembershipTest.php
tests/phpunit/api/v4/Entity/QueueTest.php
xml/schema/Core/UserJob.xml