db: change qhash varchar to 64 instead of 255

This commit is contained in:
DerLinkman 2025-08-06 16:11:23 +02:00
parent 2b2da1679e
commit 2b93b59cdd
No known key found for this signature in database
GPG Key ID: AA4A82514748F5A9

View File

@ -4,7 +4,7 @@ function init_db_schema()
try {
global $pdo;
$db_version = "21052025_2215";
$db_version = "06082025_1611";
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
@ -345,7 +345,7 @@ function init_db_schema()
"notified" => "TINYINT(1) NOT NULL DEFAULT '0'",
"created" => "DATETIME(0) NOT NULL DEFAULT NOW(0)",
"user" => "VARCHAR(255) NOT NULL DEFAULT 'unknown'",
"qhash" => "VARCHAR(255)",
"qhash" => "VARCHAR(64)",
),
"keys" => array(
"primary" => array(