Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chancemedia/mbzdb
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliot Chance committed Jul 1, 2010
2 parents b840253 + 7425cf6 commit 99c5268
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
2 changes: 2 additions & 0 deletions init.pl
Expand Up @@ -5,6 +5,8 @@
require "backend/$g_db_rdbms.pl";
require "src/functions.pl";

mbz_create_folders();

# TODO: There is an issue with some of the CREATE UNIQUE INDEXs on table columns that are not unique
# name (select count(1) - count(distinct ?) from ?)
# artistalias_nameindex 20 duplicates
Expand Down
4 changes: 0 additions & 4 deletions mbdump/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion mbdump/blank.file

This file was deleted.

4 changes: 2 additions & 2 deletions src/firstboot.pl
@@ -1,6 +1,6 @@
# First boot
$g_chosenlanguage = 1;
$g_firstboot = 1;
$g_chosenlanguage = 0;
$g_firstboot = 0;

# Language
$g_language = 'English';
Expand Down
10 changes: 10 additions & 0 deletions src/functions.pl
Expand Up @@ -836,5 +836,15 @@ sub mbz_update_schema {
}


# mbz_create_folders()
# Create the required mbdump/ and replication/ folders if they do not exist
# @return Always 1.
sub mbz_create_folders {
mkdir("mbdump");
mkdir("replication");
return 1;
}


# be nice
return 1;
2 changes: 2 additions & 0 deletions update.pl
Expand Up @@ -15,6 +15,8 @@
require "backend/$g_db_rdbms.pl";
require "src/functions.pl";

mbz_create_folders();

# require plugin files
foreach my $plugin (@g_active_plugins) {
require "plugins/$plugin.pl";
Expand Down

0 comments on commit 99c5268

Please sign in to comment.