forked from elliotchance/mbzdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.pl
executable file
·67 lines (49 loc) · 1.91 KB
/
settings.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
require "src/builtins.pl";
require "src/firstboot.pl";
#############################
# Basic options
#############################
# Must be 'mysql' or 'postgresql'
$g_db_rdbms = 'mysql';
#############################
# Advanced database options
#############################
# You may want to ignore certain tables or fields during the replications.
@g_ignore_tables = (
# eg. 'trm', 'trmjoin'
);
@g_ignore_fields = (
# eg. 'trmids'
);
# Schema. This is where the SQL scripts to create the schema come from, only edit this if you know
# what you're doing.
$schema_base = 'http://git.musicbrainz.org/gitweb/?p=musicbrainz-server.git;a=blob_plain';
$g_schema_url = "$schema_base;f=admin/sql/CreateTables.sql;hb=master";
$g_indexfk_url = "$schema_base;f=admin/sql/CreateFKConstraints.sql;hb=master";
$g_index_url = "$schema_base;f=admin/sql/CreateIndexes.sql;hb=master";
$g_pk_url = "$schema_base;f=admin/sql/CreatePrimaryKeys.sql;hb=master";
$g_func_url = "$schema_base;f=admin/sql/CreateFunctions.sql;hb=master";
$g_pending_url = "$schema_base;f=admin/sql/ReplicationSetup.sql;hb=master";
# Replications URL
$g_rep_host = "ftp.musicbrainz.org";
$g_rep_url = "/pub/musicbrainz/data/replication";
# Kill the update script if a duplicate error (i.e. a duplicate unique key) occurs. It is
# recommended you leave this at 0.
$g_die_on_dupid = 0;
# Kill the update script if a real database error occurs, like an invalid SQL statement.
$g_die_on_error = 1;
# Kill the update script if some part of a plugin fails.
$g_die_on_plugin = 0;
#############################
# Plugin options
#############################
# Currently active plugins.
@g_active_plugins = ('livestats','pendinglog');
#############################
# Don't edit beyond this point
#############################
$g_pending = 'dbmirror_Pending';
$g_pendingdata = 'dbmirror_PendingData';
$g_pendingfile = 'dbmirror_pending';
$g_pendingdatafile = 'dbmirror_pendingdata';
return 1;