ALTER TABLE Companies ADD COLUMN comptype varchar(32) NOT NULL DEFAULT '';
--- not sure if this needs to change..
---ALTER TABLE Companies ADD COLUMN comptype_id INT(11) DEFAULT 0;
+-- not sure if this needs to change.. << there is code in core/update that fills this in??
+ALTER TABLE Companies ADD COLUMN comptype_id INT(11) DEFAULT 0;
ALTER TABLE Companies CHANGE COLUMN isOwner isOwner int(11);
ALTER TABLE Events add index lookup_action_person (action, person_id);
+ alter table Events add index lookup_actions ( person_id, person_table, action);
CREATE TABLE core_event_audit (
id int(11) NOT NULL AUTO_INCREMENT,