Skip to content

Commit

Permalink
Merge pull request #18135 from colemanw/daoVersions
Browse files Browse the repository at this point in the history
API - Add upgrade-safe checks to ensure table exists before reading
  • Loading branch information
seamuslee001 authored Aug 14, 2020
2 parents c8e793a + 633a8db commit e1c19ea
Show file tree
Hide file tree
Showing 166 changed files with 547 additions and 192 deletions.
4 changes: 3 additions & 1 deletion CRM/ACL/DAO/ACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/ACL/ACL.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:d91adfb9ffb0a514d42f6828f1b95033)
* (GenCodeChecksum:f75eaa0ee87675c14a224ec22b2c30a7)
*/

/**
* Database access object for the ACL entity.
*/
class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.6';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/ACL/DAO/ACLCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/ACL/ACLCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:0427e4f02009f7a66cf34ae18ef397aa)
* (GenCodeChecksum:cbf36d56ce734a5f7ceeb2071b68ebf8)
*/

/**
* Database access object for the ACLCache entity.
*/
class CRM_ACL_DAO_ACLCache extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.6';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/ACL/DAO/EntityRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/ACL/EntityRole.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:2e8133b4c385feaa934b2d14ea40f971)
* (GenCodeChecksum:d985c951ef9a8872008576b41c1f2b9c)
*/

/**
* Database access object for the EntityRole entity.
*/
class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.6';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Activity/DAO/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Activity/Activity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:99193964db864f9ec91b02b2bbc2d8f4)
* (GenCodeChecksum:acbed5c46fa2f00de06493210358c684)
*/

/**
* Database access object for the Activity entity.
*/
class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Activity/DAO/ActivityContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Activity/ActivityContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:b458f04c2195968dbc9d49f35f7abb70)
* (GenCodeChecksum:777598f3625dfeaf37a81de282808c60)
*/

/**
* Database access object for the ActivityContact entity.
*/
class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '4.4';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Batch/DAO/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Batch/Batch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:062be2c63f724430f3a380c015fd6a02)
* (GenCodeChecksum:8169fc2f338afc4a163214c0018030be)
*/

/**
* Database access object for the Batch entity.
*/
class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.3';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Batch/DAO/EntityBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Batch/EntityBatch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:645843a03d3f8e9194ddd2bd79abf5c7)
* (GenCodeChecksum:6b6bd1337d9011c2a262de0e62c1e8e1)
*/

/**
* Database access object for the EntityBatch entity.
*/
class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.3';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Campaign/DAO/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Campaign/Campaign.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:6b53e3fb452807fce31fc81bb2b09b38)
* (GenCodeChecksum:cfa77579eb9b91b31b6c5618b52c6e87)
*/

/**
* Database access object for the Campaign entity.
*/
class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.3';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Campaign/DAO/CampaignGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Campaign/CampaignGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:a4fa6a19ef72119a316417521e209cd4)
* (GenCodeChecksum:74c02a4708ef706860d023c1635b98c4)
*/

/**
* Database access object for the CampaignGroup entity.
*/
class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.3';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Campaign/DAO/Survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Campaign/Survey.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:80b92f90300f8e432ddd68e95d22b622)
* (GenCodeChecksum:e955546c8081852591bc08b1fdee4213)
*/

/**
* Database access object for the Survey entity.
*/
class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.2';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Case/DAO/Case.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Case/Case.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:ec6804103883c17fff63061e06d3e591)
* (GenCodeChecksum:8b18140da75bbf971a143c205f2af1cd)
*/

/**
* Database access object for the Case entity.
*/
class CRM_Case_DAO_Case extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.8';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Case/DAO/CaseActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Case/CaseActivity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:d2ef4c48307f130ba531ff5c4bfb38d6)
* (GenCodeChecksum:974d18e84d3416c98293bedd66c3384c)
*/

/**
* Database access object for the CaseActivity entity.
*/
class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.8';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Case/DAO/CaseContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Case/CaseContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:4a71399455a593008da4849db726f7b9)
* (GenCodeChecksum:b315f42d7c886c123c9e87c9713c4911)
*/

/**
* Database access object for the CaseContact entity.
*/
class CRM_Case_DAO_CaseContact extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '2.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Case/DAO/CaseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Case/CaseType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:c65e3b1aa03fb9ad3122915d612fefb8)
* (GenCodeChecksum:cde81a56b0e8201eac521b92ded6fb45)
*/

/**
* Database access object for the CaseType entity.
*/
class CRM_Case_DAO_CaseType extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '4.5';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/ACLContactCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/ACLContactCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:b99253b18e66856d4b6d914f2669fa30)
* (GenCodeChecksum:97d9be5e13ece64b6c9ad1722d9bca68)
*/

/**
* Database access object for the ACLContactCache entity.
*/
class CRM_Contact_DAO_ACLContactCache extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/Contact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:da59563e28c0229228f7c2baa20caabf)
* (GenCodeChecksum:254705f91b182cf2ded06a3caf578f6e)
*/

/**
* Database access object for the Contact entity.
*/
class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/ContactType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/ContactType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:34f2ee23181ddce3050484b6e30b0e72)
* (GenCodeChecksum:0f7546e10f09f7637d50f7a34c632cb5)
*/

/**
* Database access object for the ContactType entity.
*/
class CRM_Contact_DAO_ContactType extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/DashboardContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/DashboardContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:c6084fad33e2fed9634eee46cfcfd4ee)
* (GenCodeChecksum:67153c09e74eda2febf15986f9c04439)
*/

/**
* Database access object for the DashboardContact entity.
*/
class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '3.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/Group.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:a8a3812a392b7544441cdbe1f9500f21)
* (GenCodeChecksum:6a2a222c5fa5b461727bb95379723b08)
*/

/**
* Database access object for the Group entity.
*/
class CRM_Contact_DAO_Group extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/GroupContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/GroupContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:11947c2ac6a20781c2daa15b0f894983)
* (GenCodeChecksum:143ba4d95cae73fc81c8e932970cbc1f)
*/

/**
* Database access object for the GroupContact entity.
*/
class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '1.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/GroupContactCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/GroupContactCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:78446b0939b21d995dd17476d11030e7)
* (GenCodeChecksum:a169b776ec9bfc8864a05750d4ae6b95)
*/

/**
* Database access object for the GroupContactCache entity.
*/
class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '2.1';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/GroupNesting.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/GroupNesting.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:7e5dfd763c2f4b39ff7f3ea962269bae)
* (GenCodeChecksum:0ca7da77b0229b439c9c3a4c4c2e4326)
*/

/**
* Database access object for the GroupNesting entity.
*/
class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '2.0';

/**
* Static instance to hold the table name.
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/DAO/GroupOrganization.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* Generated from xml/schema/CRM/Contact/GroupOrganization.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:59e2d9b6cb5577d3f8a72422fb33f643)
* (GenCodeChecksum:dfe8edf8f786790af95f09f456d1cbe7)
*/

/**
* Database access object for the GroupOrganization entity.
*/
class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO {
const EXT = 'civicrm';
const TABLE_ADDED = '2.0';

/**
* Static instance to hold the table name.
Expand Down
Loading

0 comments on commit e1c19ea

Please sign in to comment.