sql/projectdirectory.sql
[Pman.Core] / sql / core_person.sql
index 32dc23d..e3ebb43 100644 (file)
@@ -22,7 +22,8 @@ ALTER TABLE core_person ADD COLUMN   remarks text NOT NULL;
 ALTER TABLE core_person ADD COLUMN   lang varchar(8) default 'en';
 ALTER TABLE core_person ADD COLUMN   country varchar(8) default '';
 
-SET SQL_MODE='ALLOW_INVALID_DATES';
+-- 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';
 
 -- main contact details
@@ -100,4 +101,8 @@ ALTER TABLE core_person add index lookup_owner(owner_id);
  
 --  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);
\ No newline at end of file