CRM/Core/DAO/WordReplacement.php
CRM/Core/DAO/Worldregion.php
CRM/Core/I18n/SchemaStructure.php
+CRM/Cxn/DAO
CRM/Dedupe/DAO
CRM/Event/Cart/DAO
CRM/Event/DAO
{* file to handle db changes in 4.6.5 during upgrade *}
+
+-- CRM-16173
+CREATE TABLE `civicrm_cxn` (
+ `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Connection ID',
+ `app_guid` varchar(128) COMMENT 'Application GUID',
+ `app_meta` text COMMENT 'Application Metadata (JSON)',
+ `cxn_guid` varchar(128) COMMENT 'Connection GUID',
+ `secret` text COMMENT 'Shared secret',
+ `perm` text COMMENT 'Permissions approved for the service (JSON)',
+ `options` text COMMENT 'Options for the service (JSON)',
+ `is_active` tinyint DEFAULT 1 COMMENT 'Is connection currently enabled?',
+ `created_date` timestamp NULL DEFAULT NULL COMMENT 'When was the connection was created.',
+ `modified_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When the connection was created or modified.',
+ `fetched_date` timestamp NULL DEFAULT NULL COMMENT 'The last time the application metadata was fetched.' ,
+ PRIMARY KEY ( `id` )
+ , UNIQUE INDEX `UI_appid`(
+ app_guid
+ )
+ , UNIQUE INDEX `UI_keypair_cxnid`(
+ cxn_guid
+ )
+) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
+
-- CRM-16417 add failed payment activity type
SELECT @option_group_id_act := max(id) from civicrm_option_group where name = 'activity_type';
SELECT @option_group_id_act_wt := MAX(weight) FROM civicrm_option_value WHERE option_group_id = @option_group_id_act;
--- /dev/null
+<table>
+ <base>CRM/Cxn</base>
+ <class>Cxn</class>
+ <name>civicrm_cxn</name>
+ <add>4.6</add>
+ <field>
+ <name>id</name>
+ <type>int unsigned</type>
+ <required>true</required>
+ <comment>Connection ID</comment>
+ <add>4.6</add>
+ </field>
+ <primaryKey>
+ <name>id</name>
+ <autoincrement>false</autoincrement>
+ </primaryKey>
+
+ <!-- Application identification -->
+
+ <field>
+ <name>app_id</name>
+ <title>Application GUID</title>
+ <type>varchar</type>
+ <length>128</length>
+ <comment>Application GUID</comment>
+ <add>4.6</add>
+ </field>
+ <index>
+ <name>UI_appid</name>
+ <fieldName>app_id</fieldName>
+ <unique>true</unique>
+ <add>4.6</add>
+ </index>
+ <field>
+ <name>app_meta</name>
+ <title>Application Metadata (JSON)</title>
+ <type>text</type>
+ <comment>Application Metadata (JSON)</comment>
+ <add>4.6</add>
+ </field>
+
+ <!-- Connection details -->
+
+ <field>
+ <name>cxn_id</name>
+ <title>Connection GUID</title>
+ <type>varchar</type>
+ <length>128</length>
+ <comment>Connection GUID</comment>
+ <add>4.6</add>
+ </field>
+ <index>
+ <name>UI_keypair_cxnid</name>
+ <fieldName>cxn_id</fieldName>
+ <unique>true</unique>
+ <add>4.6</add>
+ </index>
+ <field>
+ <name>secret</name>
+ <type>text</type>
+ <comment>Shared secret</comment>
+ <add>4.6</add>
+ </field>
+ <field>
+ <name>perm</name>
+ <type>text</type>
+ <comment>Permissions approved for the service (JSON)</comment>
+ <add>4.6</add>
+ </field>
+ <field>
+ <name>options</name>
+ <type>text</type>
+ <comment>Options for the service (JSON)</comment>
+ <add>4.6</add>
+ </field>
+
+ <!-- Connection lifecycle -->
+
+ <field>
+ <name>is_active</name>
+ <title>Is Active</title>
+ <type>boolean</type>
+ <default>1</default>
+ <comment>Is connection currently enabled?</comment>
+ <add>4.6</add>
+ </field>
+ <field>
+ <name>created_date</name>
+ <type>timestamp</type>
+ <comment>When was the connection was created.</comment>
+ <required>false</required>
+ <default>NULL</default>
+ <add>4.6</add>
+ </field>
+ <field>
+ <name>modified_date</name>
+ <type>timestamp</type>
+ <comment>When the connection was created or modified.</comment>
+ <required>false</required>
+ <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default>
+ <add>4.6</add>
+ </field>
+ <field>
+ <name>fetched_date</name>
+ <type>timestamp</type>
+ <comment>The last time the application metadata was fetched.</comment>
+ <required>false</required>
+ <default>NULL</default>
+ <add>4.6</add>
+ </field>
+</table>
--- /dev/null
+<?xml version="1.0" encoding="iso-8859-1" ?>
+
+<tables xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="Cxn.xml" parse="xml" />
+</tables>
<xi:include href="Report/files.xml" parse="xml" />
<xi:include href="Price/files.xml" parse="xml" />
<xi:include href="PCP/files.xml" parse="xml" />
+<xi:include href="Cxn/files.xml" parse="xml" />
</database>