DROP TABLE IF EXISTS `0_crm_contacts`;
CREATE TABLE IF NOT EXISTS `0_crm_contacts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
- `person_id` int(11) NOT NULL DEFAULT '0' COMMENT 'foreign key to crm_contacts',
+ `person_id` int(11) NOT NULL DEFAULT '0' COMMENT 'foreign key to crm_persons',
`type` varchar(20) NOT NULL COMMENT 'foreign key to crm_categories',
`action` varchar(20) NOT NULL COMMENT 'foreign key to crm_categories',
`entity_id` varchar(11) DEFAULT NULL COMMENT 'entity id in related class table',
DROP TABLE IF EXISTS `0_crm_contacts`;
CREATE TABLE IF NOT EXISTS `0_crm_contacts` (
`id` int(11) NOT NULL auto_increment,
- `person_id` int(11) NOT NULL default '0' COMMENT 'foreign key to crm_contacts',
+ `person_id` int(11) NOT NULL default '0' COMMENT 'foreign key to crm_persons',
`type` varchar(20) NOT NULL COMMENT 'foreign key to crm_categories',
`action` varchar(20) NOT NULL COMMENT 'foreign key to crm_categories',
`entity_id` varchar(11) default NULL COMMENT 'entity id in related class table',