]> git.sesse.net Git - pr0n/blobdiff - perl/Sesse/pr0n/Common.pm
Rename "tag" to "key" in exif_info table, and make a small SQL script to do
[pr0n] / perl / Sesse / pr0n / Common.pm
index 073996f187bc06783d1dc8ac8c27019e6974d691..d73df38a381788ff31b090f708d43f5b20f9d566 100644 (file)
@@ -216,7 +216,7 @@ sub update_image_info {
                        undef, $id)
                        or die "Couldn't delete old EXIF information in SQL: $!";
 
-               my $q = $dbh->prepare('INSERT INTO exif_info (image,tag,value) VALUES (?,?,?)')
+               my $q = $dbh->prepare('INSERT INTO exif_info (image,key,value) VALUES (?,?,?)')
                        or die "Couldn't prepare inserting EXIF information: $!";
 
                for my $key (keys %$info) {