X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2Fcore.sql;h=8097dce653b139d1cf3ebf93ce7d2a716d778cc6;hb=bcc986ea4bb4f1f800379c7e9f6131cf0506b749;hp=310b77f706c40ff8401495acd2af163d8c315270;hpb=07a13560da06113ea59cf8b7a7617e7a3b5f4f37;p=Pman.Core diff --git a/DataObjects/core.sql b/DataObjects/core.sql index 310b77f7..8097dce6 100644 --- a/DataObjects/core.sql +++ b/DataObjects/core.sql @@ -97,7 +97,7 @@ ALTER TABLE Events ADD INDEX lookupf (on_id, action, on_table, person_id, event_ ALTER TABLE Events ADD INDEX lookuppt ( person_table); --# speeding up lookups. -ALTER TABLE Events ADD INDEX lookup_when( person_id, event_id ); +ALTER TABLE Events ADD INDEX lookup_when( person_id, event_when ); ALTER TABLE Events add index lookup_event_when (event_when); ALTER TABLE Events add index lookup_action (action); @@ -215,6 +215,7 @@ ALTER TABLE Person ADD COLUMN url_linkedin VARCHAR(256) NULL ; ALTER TABLE Person ADD COLUMN phone_mobile varchar(32) NOT NULL DEFAULT ''; ALTER TABLE Person ADD COLUMN phone_direct varchar(32) NOT NULL DEFAULT ''; +ALTER TABLE Person ADD COLUMN honor varchar(32) NOT NULL DEFAULT ''; # old mysql alter table Person change column active active int(11) NOT NULL DEFAULT 1 ; @@ -245,7 +246,7 @@ ALTER TABLE Projects ADD COLUMN open_date date default NULL; ALTER TABLE Projects ADD COLUMN open_by int(11) NOT NULL default '0'; ALTER TABLE Projects ADD COLUMN updated_dt DATETIME NOT NULL; -# these should be removed, as they are code specific.. +-- these should be removed, as they are code specific.. ALTER TABLE Projects ADD COLUMN countries varchar(128) NOT NULL DEFAULT ''; ALTER TABLE Projects ADD COLUMN languages varchar(128) NOT NULL DEFAULT ''; ALTER TABLE Projects ADD COLUMN agency_id int(11) NOT NULL DEFAULT 0 ; @@ -253,9 +254,9 @@ ALTER TABLE Projects ADD COLUMN agency_id int(11) NOT NULL DEFAULT 0 ; ALTER TABLE Projects ADD INDEX plookup (code); -#-- we duplicate office_id and company_id here... -#-- not sure if we should keep doing that in the new design... -#-- we should improve our links code to handle this.. +-- we duplicate office_id and company_id here... +-- not sure if we should keep doing that in the new design... +-- we should improve our links code to handle this.. CREATE TABLE ProjectDirectory ( @@ -294,12 +295,14 @@ ALTER TABLE Images ADD COLUMN descript TEXT DEFAULT '' NOT NULL; ALTER TABLE Images ADD COLUMN title VARCHAR(128) DEFAULT '' NOT NULL; ALTER TABLE Images CHANGE COLUMN mimetype mimetype varchar(128) NOT NULL default ''; +-- postgres +ALTER TABLE Images ALTER COLUMN mimetype TYPE varchar(128) ; ALTER TABLE Images ADD INDEX lookup(ontable, onid); ALTER TABLE Images ADD INDEX lookupc(created, ontable, onid); -#// old core image type - merged into enum. +--// old core image type - merged into enum. DROP TABLE core_image_type;