Skip to content

Moorfields OpenEyes staff database module

Notifications You must be signed in to change notification settings

openeyes/mehstaffdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moorfields central staff database module

Requires:

  • php5-sybase

Installation:

  1. Ensure these lines are in [global] section of /etc/freetds/freetds.conf:

tds version = 8.0 client charset = UTF-8

  1. Set reasonable timeouts in /etc/freetds/freetds.conf:

timeout = 3 connect timeout = 3

  1. Add to modules list in config/local/common.php

'modules' => array( ... 'mehstaffdb', ... ),

  1. Add a db connection called 'db_staff' to config/local/common.php with the details of your connection:

'db_staff' => array( 'connectionString' => 'dblib:host=HOSTNAME;dbname=DATABASE', 'username' => 'USERNAME':, 'password' => 'PASSWORD', ),

  1. Optionally add one of the following params directives to override the defaults:

'mehstaffdb_always_refresh' => true, 'mehstaffdb_cache_time' => 300,

(the former overrides the latter)