schema: incorrect error log

fix incorrect error report when updating table.
master
OpenGnSys Support Team 2024-08-28 13:00:35 +02:00
parent 5eba9f4e1b
commit 9ee9d66b7c
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ static int og_dbi_schema_v5(struct og_dbi *dbi)
"ADD `permissions` int DEFAULT '0' AFTER `lastupdate`;");
if (!result) {
dbi_conn_error(dbi->conn, &msglog);
syslog(LOG_INFO, "Error when adding identorno (%s:%d) %s\n",
syslog(LOG_INFO, "Error when updating imagenes table (%s:%d) %s\n",
__func__, __LINE__, msglog);
return -1;
}
@ -288,7 +288,7 @@ static int og_dbi_schema_v6(struct og_dbi *dbi)
") AUTO_INCREMENT=1;");
if (!result) {
dbi_conn_error(dbi->conn, &msglog);
syslog(LOG_INFO, "Error when adding identorno (%s:%d) %s\n",
syslog(LOG_INFO, "Error creating table cache (%s:%d) %s\n",
__func__, __LINE__, msglog);
return -1;
}