forked from rajeshrhino/uk.co.nfpservices.module.civigiftaid
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with entity definition and regenerate
- Loading branch information
Showing
7 changed files
with
144 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
-- +--------------------------------------------------------------------+ | ||
-- | CiviCRM version 5 | | ||
-- +--------------------------------------------------------------------+ | ||
-- | Copyright CiviCRM LLC (c) 2004-2019 | | ||
-- +--------------------------------------------------------------------+ | ||
-- | This file is a part of CiviCRM. | | ||
-- | | | ||
-- | CiviCRM is free software; you can copy, modify, and distribute it | | ||
-- | under the terms of the GNU Affero General Public License | | ||
-- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | ||
-- | | | ||
-- | CiviCRM is distributed in the hope that it will be useful, but | | ||
-- | WITHOUT ANY WARRANTY; without even the implied warranty of | | ||
-- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | ||
-- | See the GNU Affero General Public License for more details. | | ||
-- | | | ||
-- | You should have received a copy of the GNU Affero General Public | | ||
-- | License and the CiviCRM Licensing Exception along | | ||
-- | with this program; if not, contact CiviCRM LLC | | ||
-- | at info[AT]civicrm[DOT]org. If you have questions about the | | ||
-- | GNU Affero General Public License or the licensing of CiviCRM, | | ||
-- | see the CiviCRM license FAQ at http://civicrm.org/licensing | | ||
-- +--------------------------------------------------------------------+ | ||
-- | ||
-- Generated from schema.tpl | ||
-- DO NOT EDIT. Generated by CRM_Core_CodeGen | ||
-- | ||
|
||
|
||
-- +--------------------------------------------------------------------+ | ||
-- | CiviCRM version 5 | | ||
-- +--------------------------------------------------------------------+ | ||
-- | Copyright CiviCRM LLC (c) 2004-2019 | | ||
-- +--------------------------------------------------------------------+ | ||
-- | This file is a part of CiviCRM. | | ||
-- | | | ||
-- | CiviCRM is free software; you can copy, modify, and distribute it | | ||
-- | under the terms of the GNU Affero General Public License | | ||
-- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | ||
-- | | | ||
-- | CiviCRM is distributed in the hope that it will be useful, but | | ||
-- | WITHOUT ANY WARRANTY; without even the implied warranty of | | ||
-- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | ||
-- | See the GNU Affero General Public License for more details. | | ||
-- | | | ||
-- | You should have received a copy of the GNU Affero General Public | | ||
-- | License and the CiviCRM Licensing Exception along | | ||
-- | with this program; if not, contact CiviCRM LLC | | ||
-- | at info[AT]civicrm[DOT]org. If you have questions about the | | ||
-- | GNU Affero General Public License or the licensing of CiviCRM, | | ||
-- | see the CiviCRM license FAQ at http://civicrm.org/licensing | | ||
-- +--------------------------------------------------------------------+ | ||
-- | ||
-- Generated from drop.tpl | ||
-- DO NOT EDIT. Generated by CRM_Core_CodeGen | ||
-- | ||
-- /******************************************************* | ||
-- * | ||
-- * Clean up the exisiting tables | ||
-- * | ||
-- *******************************************************/ | ||
|
||
SET FOREIGN_KEY_CHECKS=0; | ||
|
||
DROP TABLE IF EXISTS `civicrm_civigiftaid_batchsettings`; | ||
|
||
SET FOREIGN_KEY_CHECKS=1; | ||
-- /******************************************************* | ||
-- * | ||
-- * Create new tables | ||
-- * | ||
-- *******************************************************/ | ||
|
||
-- /******************************************************* | ||
-- * | ||
-- * civicrm_civigiftaid_batchsettings | ||
-- * | ||
-- * FIXME | ||
-- * | ||
-- *******************************************************/ | ||
CREATE TABLE `civicrm_civigiftaid_batchsettings` ( | ||
|
||
|
||
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique BatchSettings ID', | ||
`batch_id` int unsigned COMMENT 'FK to Batch', | ||
`financial_types_enabled` text COMMENT 'Financial type enabled for this batch', | ||
`globally_enabled` tinyint COMMENT 'Globally enabled for this batch', | ||
`basic_rate_tax` decimal(4,2) NOT NULL COMMENT 'Basic rate tax for the batch.' | ||
, | ||
PRIMARY KEY (`id`) | ||
|
||
|
||
, CONSTRAINT FK_civicrm_civigiftaid_batchsettings_batch_id FOREIGN KEY (`batch_id`) REFERENCES `civicrm_batch`(`id`) ON DELETE CASCADE | ||
) ; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
-- +--------------------------------------------------------------------+ | ||
-- | CiviCRM version 5 | | ||
-- +--------------------------------------------------------------------+ | ||
-- | Copyright CiviCRM LLC (c) 2004-2019 | | ||
-- +--------------------------------------------------------------------+ | ||
-- | This file is a part of CiviCRM. | | ||
-- | | | ||
-- | CiviCRM is free software; you can copy, modify, and distribute it | | ||
-- | under the terms of the GNU Affero General Public License | | ||
-- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | ||
-- | | | ||
-- | CiviCRM is distributed in the hope that it will be useful, but | | ||
-- | WITHOUT ANY WARRANTY; without even the implied warranty of | | ||
-- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | ||
-- | See the GNU Affero General Public License for more details. | | ||
-- | | | ||
-- | You should have received a copy of the GNU Affero General Public | | ||
-- | License and the CiviCRM Licensing Exception along | | ||
-- | with this program; if not, contact CiviCRM LLC | | ||
-- | at info[AT]civicrm[DOT]org. If you have questions about the | | ||
-- | GNU Affero General Public License or the licensing of CiviCRM, | | ||
-- | see the CiviCRM license FAQ at http://civicrm.org/licensing | | ||
-- +--------------------------------------------------------------------+ | ||
-- | ||
-- Generated from drop.tpl | ||
-- DO NOT EDIT. Generated by CRM_Core_CodeGen | ||
-- | ||
-- /******************************************************* | ||
-- * | ||
-- * Clean up the exisiting tables | ||
-- * | ||
-- *******************************************************/ | ||
|
||
SET FOREIGN_KEY_CHECKS=0; | ||
|
||
DROP TABLE IF EXISTS `civicrm_civigiftaid_batchsettings`; | ||
|
||
SET FOREIGN_KEY_CHECKS=1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xml/schema/CRM/BatchSettings/files.xml → xml/schema/CRM/Civigiftaid/files.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="iso-8859-1" ?> | ||
|
||
<tables xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<xi:include href="BatchSettings.xml" parse="xml" /> | ||
<xi:include href="BatchSettings.xml" parse="xml" /> | ||
</tables> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<xi:include href="CRM/BatchSettings/files.xml" parse="xml" /> | ||
<xi:include href="CRM/Civigiftaid/files.xml" parse="xml" /> |