remove redundant casts

This commit is contained in:
Shish 2020-10-26 23:18:14 +00:00
parent 56f1fac4c5
commit aceb3e23f3
2 changed files with 2 additions and 4 deletions

View file

@ -458,7 +458,7 @@ class Image
"height" => $this->height ?? 0,
"lossless" => $database->scoresql_value_prepare($this->lossless),
"video" => $database->scoresql_value_prepare($this->video),
"video_codec" => $database->scoresql_value_prepare($this->video_codec),
"video_codec" => $this->video_codec,
"image" => $database->scoresql_value_prepare($this->image),
"audio" => $database->scoresql_value_prepare($this->audio),
"length" => $this->length

View file

@ -190,9 +190,7 @@ class Upgrade extends Extension
if ($this->get_version("db_version") < 19) {
log_info("upgrade", "Adding MIME type column");
$database->execute($database->scoreql_to_sql(
"ALTER TABLE images ADD COLUMN mime varchar(512) NULL"
));
$database->execute("ALTER TABLE images ADD COLUMN mime varchar(512) NULL");
// Column is primed in mime extension
log_info("upgrade", "Setting index for mime column");
$database->execute('CREATE INDEX images_mime_idx ON images(mime)');