From 7a5dbd86ff22344932b063077f68b9f6e9946431 Mon Sep 17 00:00:00 2001 From: lshprung Date: Sun, 12 Sep 2021 11:41:07 -0700 Subject: Started working on script to build playlist files --- build_db.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build_db.plx') diff --git a/build_db.plx b/build_db.plx index e98423a..7d2cf04 100755 --- a/build_db.plx +++ b/build_db.plx @@ -237,7 +237,7 @@ if (!$options{append}){ else { for my $i (sort(keys %columns)){ $statement = "SELECT COUNT(*) AS CNTREC FROM pragma_table_info('$table_name') WHERE name='$i';"; - if (db_cmd($dbh, $statement) == 0){ + if (!db_cmd($dbh, $statement)){ $statement = "ALTER TABLE $table_name ADD COLUMN \"$i\";"; db_cmd($dbh, $statement); } -- cgit