remove redundant casts
This commit is contained in:
parent
56f1fac4c5
commit
aceb3e23f3
2 changed files with 2 additions and 4 deletions
|
@ -458,7 +458,7 @@ class Image
|
||||||
"height" => $this->height ?? 0,
|
"height" => $this->height ?? 0,
|
||||||
"lossless" => $database->scoresql_value_prepare($this->lossless),
|
"lossless" => $database->scoresql_value_prepare($this->lossless),
|
||||||
"video" => $database->scoresql_value_prepare($this->video),
|
"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),
|
"image" => $database->scoresql_value_prepare($this->image),
|
||||||
"audio" => $database->scoresql_value_prepare($this->audio),
|
"audio" => $database->scoresql_value_prepare($this->audio),
|
||||||
"length" => $this->length
|
"length" => $this->length
|
||||||
|
|
|
@ -190,9 +190,7 @@ class Upgrade extends Extension
|
||||||
if ($this->get_version("db_version") < 19) {
|
if ($this->get_version("db_version") < 19) {
|
||||||
log_info("upgrade", "Adding MIME type column");
|
log_info("upgrade", "Adding MIME type column");
|
||||||
|
|
||||||
$database->execute($database->scoreql_to_sql(
|
$database->execute("ALTER TABLE images ADD COLUMN mime varchar(512) NULL");
|
||||||
"ALTER TABLE images ADD COLUMN mime varchar(512) NULL"
|
|
||||||
));
|
|
||||||
// Column is primed in mime extension
|
// Column is primed in mime extension
|
||||||
log_info("upgrade", "Setting index for mime column");
|
log_info("upgrade", "Setting index for mime column");
|
||||||
$database->execute('CREATE INDEX images_mime_idx ON images(mime)');
|
$database->execute('CREATE INDEX images_mime_idx ON images(mime)');
|
||||||
|
|
Reference in a new issue