[#42] added data structure and upgrader/migration
This commit is contained in:
parent
6fbc1d4a5d
commit
62399657e7
2 changed files with 48 additions and 114 deletions
16
sql/civicrm_twingle_profile.sql
Normal file
16
sql/civicrm_twingle_profile.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- /*******************************************************
|
||||
-- ** civicrm_twingle_profile
|
||||
-- **
|
||||
-- ** stores twingle profile data v1.4+
|
||||
-- ********************************************************/
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `civicrm_twingle_profile`(
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`name` varchar(255) COMMENT 'configuration name, i.e. internal ID',
|
||||
`config` text COMMENT 'JSON encoded configuration',
|
||||
`last_access` datetime COMMENT 'timestamp of the last access (through the api)',
|
||||
`access_counter` int unsigned COMMENT 'number of accesses (through the api)',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE INDEX (`name`)
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue