ALTER TABLE core_person ADD COLUMN lang varchar(8) default 'en';
ALTER TABLE core_person ADD COLUMN country varchar(8) default '';
--- do not set SQL mode here - it needs to be done in the config
+-- do not set SQL mode here - it needs to be done in the mysql config (updatedatabase checks for this)
-- SET SQL_MODE='ALLOW_INVALID_DATES';
ALTER TABLE core_person ADD COLUMN birth_date DATE NOT NULL DEFAULT '0000-00-00';
-- finally - always innodb
-ALTER TABLE core_person ADD COLUMN post_code VARCHAR(256) NOT NULL DEFAULT '';
\ No newline at end of file
+ALTER TABLE core_person ADD COLUMN post_code VARCHAR(256) NOT NULL DEFAULT '';
+
+ALTER TABLE core_person ADD COLUMN oath_key VARCHAR(254) NOT NULL DEFAULT '';
+
+alter table core_person add index lookup_company_id( company_id);
+alter table core_person add index lookup_buying_head_id( buying_head_id);
\ No newline at end of file