5
5
* You don't have to pass these to the schema generator as it will use
6
6
* reasonable defaults. The are replicated here to make them easy to change.
8
* @package schema_generator
9
9
* @author Anthony Bush
12
require(dirname(dirname(dirname(__FILE__))) . '/database_config.inc.php');
16
// All databases will be scanned unless specified in the 'databases' parameter in the OPTIONAL CONFIG SECTION.
18
'host' => 'localhost',
19
'user' => 'cough_test',
20
'pass' => 'cough_test',
25
// OPTIONAL ADDITIONAL CONFIG
27
16
'database_settings' => array(
28
'include_databases_matching_regex' => '/^(test_cough_object)$/',
31
'table_settings' => array(
32
// This match setting is so the database scanner can resolve relationships better, e.g. know that when it sees "ticket_id" that a "wfl_ticket" table is an acceptable match.
33
'match_table_name_prefixes' => array(), // Example: array('cust_', 'wfl_', 'baof_'),
34
// You can ignore tables all together, too:
35
'exclude_tables_matching_regex' => '/(_bak$)|(^bak_)|(^temp_)/',
38
'field_settings' => array(
39
// In case of non FK detection, you can have the Database Schema Generator check for ID columns matching this regex.
40
// This is useful, for example, when no FK relationships set up)
41
'id_to_table_regex' => '/^(.*)_id$/',
42
'delete_flag_column' => 'is_retired',
43
'delete_flag_value' => '1',
17
'include_databases_matching_regex' => '/^(' . $dsn['db_name'] . ')$/',