DataObjects/core.sql
[Pman.Core] / DataObjects / core.sql
index d506c92..43e8f1f 100644 (file)
@@ -29,8 +29,8 @@ ALTER TABLE Companies ADD COLUMN    country varchar(4) NOT NULL DEFAULT '';
 
 
 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);
@@ -105,6 +105,7 @@ ALTER TABLE Events add index lookup_on_table (on_table);
 
 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,