This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
settings.pl
75 lines (57 loc) · 2.42 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
68
69
70
71
72
73
74
75
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 = 'https://raw.github.com/metabrainz/musicbrainz-server/master';
$schema_base = 'https://raw.githubusercontent.com/metabrainz/musicbrainz-server/master';
$g_schema_url = "$schema_base/admin/sql/CreateTables.sql";
$g_indexfk_url = "$schema_base/admin/sql/CreateFKConstraints.sql";
$g_index_url = "$schema_base/admin/sql/CreateIndexes.sql";
$g_pk_url = "$schema_base/admin/sql/CreatePrimaryKeys.sql";
$g_func_url = "$schema_base/admin/sql/CreateFunctions.sql";
$g_pending_url = "$schema_base/admin/sql/ReplicationSetup.sql";
$g_stats_url = "$schema_base/admin/sql/statistics/CreateTables.sql";
$g_coverart_url = "$schema_base/admin/sql/caa/CreateTables.sql";
$g_slaveidx_url = "$schema_base/admin/sql/CreateSlaveIndexes.sql";
$g_caapk_url = "$schema_base/admin/sql/caa/CreatePrimaryKeys.sql";
$g_caaidx_url = "$schema_base/admin/sql/caa/CreateIndexes.sql";
$g_statpk_url = "$schema_base/admin/sql/statistics/CreatePrimaryKeys.sql";
$g_statidx_url = "$schema_base/admin/sql/statistics/CreateIndexes.sql";
# 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;