-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRM-16860 - Declare
civicrm_upgrade
table
- Loading branch information
Showing
4 changed files
with
82 additions
and
0 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
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,27 @@ | ||
-- This code has been copied from the auto-generated civicrm.mysql | ||
-- It is required to facilitate upgrades. | ||
|
||
-- /******************************************************* | ||
-- * | ||
-- * civicrm_upgrade | ||
-- * | ||
-- * Track individual upgrade steps | ||
-- * | ||
-- *******************************************************/ | ||
CREATE TABLE `civicrm_upgrade` ( | ||
|
||
|
||
`id` int unsigned NOT NULL AUTO_INCREMENT , | ||
`module` varchar(127) NOT NULL COMMENT 'The module or extension for which upgrades were handled.', | ||
`name` varchar(255) COMMENT 'Unique name for upgrade', | ||
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When was the upgrade executed' | ||
, | ||
PRIMARY KEY ( `id` ) | ||
|
||
, UNIQUE INDEX `index_module_name`( | ||
module | ||
, name | ||
) | ||
|
||
|
||
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ; |
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,53 @@ | ||
<?xml version="1.0" encoding="iso-8859-1" ?> | ||
|
||
<table> | ||
<base>CRM/Core</base> | ||
<class>Upgrade</class> | ||
<name>civicrm_upgrade</name> | ||
<comment>Track individual upgrade steps</comment> | ||
<add>4.7</add> | ||
<field> | ||
<name>id</name> | ||
<title>Step ID</title> | ||
<type>int unsigned</type> | ||
<required>true</required> | ||
<add>4.7</add> | ||
</field> | ||
<primaryKey> | ||
<name>id</name> | ||
<autoincrement>true</autoincrement> | ||
</primaryKey> | ||
<field> | ||
<name>module</name> | ||
<title>Upgrade Module</title> | ||
<type>varchar</type> | ||
<length>127</length> | ||
<required>true</required> | ||
<comment>The module or extension for which upgrades were handled.</comment> | ||
<add>4.7</add> | ||
</field> | ||
<field> | ||
<name>name</name> | ||
<title>Upgrade Name</title> | ||
<type>varchar</type> | ||
<length>255</length> | ||
<comment>Unique name for upgrade</comment> | ||
<add>4.7</add> | ||
</field> | ||
<field> | ||
<name>created_date</name> | ||
<title>Upgrade Created Date</title> | ||
<type>timestamp</type> | ||
<comment>When was the upgrade executed</comment> | ||
<required>false</required> | ||
<default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default> | ||
<add>4.7</add> | ||
</field> | ||
<index> | ||
<name>index_module_name</name> | ||
<fieldName>module</fieldName> | ||
<fieldName>name</fieldName> | ||
<unique>true</unique> | ||
<add>4.7</add> | ||
</index> | ||
</table> |
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