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,
);
ALTER TABLE Groups ADD COLUMN name varchar(64) NOT NULL DEFAULT '';
-ALTER TABLE Groups ADD COLUMN type int(11) default NULL ;
+ALTER TABLE Groups ADD COLUMN type int(11) NOT NULL DEFAULT 0;
ALTER TABLE Groups ADD COLUMN leader int(11) NOT NULL default 0;
#old mysql..
-ALTER TABLE Groups CHANGE COLUMN type type int(11) default 0;
+update Groups set type=0 where type is null;
+
+ALTER TABLE Groups CHANGE COLUMN type type int(11) NOT NULL default 0;