aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-08-19 17:28:03 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-08-19 17:28:03 +0200
commitd85466165bc2c72cc6565d624af0ac2e397c0702 (patch)
treeacf82f735c187c23fdca3a2662865d1217e319b7
parentDie on creation failure. (diff)
downloadoldgen-zmusic-d85466165bc2c72cc6565d624af0ac2e397c0702.tar.xz
oldgen-zmusic-d85466165bc2c72cc6565d624af0ac2e397c0702.zip
Smaller db key needed.
-rw-r--r--updatedatabase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/updatedatabase.php b/updatedatabase.php
index ef84d27..acedb9a 100644
--- a/updatedatabase.php
+++ b/updatedatabase.php
@@ -255,7 +255,7 @@ function scanDirectory($directory)
function setupDatabase()
{
$r = mysql_query("CREATE TABLE IF NOT EXISTS `musictags` (
- `file` VARCHAR( 512 ) NOT NULL ,
+ `file` VARCHAR( 255 ) NOT NULL ,
`sha1` VARCHAR( 64 ) NOT NULL ,
`lastmodified` INT NOT NULL ,
`format` VARCHAR( 255 ) NULL ,