Permalink
Browse files

Rename "release_meta_sanitised" to "meta_sanitised"

  • Loading branch information...
Elliot Chance
Elliot Chance committed Aug 4, 2010
1 parent 243c31c commit 229915d7f79756256ba013796cfc4b7f71c0a002
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/functions.pl
View
@@ -8,6 +8,10 @@
mbz_connect();
+# TODO:
+# ALTER TABLE `artist_name` CHANGE `name` `name` TEXT CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL
+
+
# mbz_check_new_schema($id)
# Check if the SCHEMA_SEQUENCE matches $id, if it doesnt this means the schema has changed and we
# need to go download the latest schema and alter the database accordingly.
@@ -543,6 +547,9 @@ sub mbz_run_transactions {
# also ignore any table that starts with "nz"
next if(substr($tableName, 0, 2) eq "nz");
+
+ # rename sanitised tables
+ $tableName = "release_meta" if($tableName eq "release_meta_sanitised");
# we use '1' and 't' for MySQL and PostgreSQL
$key = mbz_unpack_data($rep_row[6]) if($rep_row[5] eq '1' or $rep_row[5] eq 't');

0 comments on commit 229915d

Please sign in to comment.