aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/file
diff options
context:
space:
mode:
authorAmir Sarabadani <ladsgroup@gmail.com>2025-01-06 22:44:21 +0100
committerAmir Sarabadani <ladsgroup@gmail.com>2025-01-06 22:44:21 +0100
commitdd63a44e9b522032a44ed81635c485f70eff3a40 (patch)
treecdeeb284c03fc6b506565c226e6a8f31581c963c /includes/filerepo/file
parent13e0f5bd2189530c24695aa51ae4a16fd8da22dc (diff)
downloadmediawikicore-dd63a44e9b522032a44ed81635c485f70eff3a40.tar.gz
mediawikicore-dd63a44e9b522032a44ed81635c485f70eff3a40.zip
file: Set fr_deleted
Error 1364: Field 'fr_deleted' doesn't have a default value Bug: T383093 Change-Id: I023ededba880f9aaad66226d692be2276e835b57
Diffstat (limited to 'includes/filerepo/file')
-rw-r--r--includes/filerepo/file/LocalFile.php1
-rw-r--r--includes/filerepo/file/OldLocalFile.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php
index 8079a6f92d51..2cbc4025c090 100644
--- a/includes/filerepo/file/LocalFile.php
+++ b/includes/filerepo/file/LocalFile.php
@@ -1953,6 +1953,7 @@ class LocalFile extends File {
'fr_height' => intval( $this->height ),
'fr_bits' => $this->bits,
'fr_actor' => $actorId,
+ 'fr_deleted' => 0,
'fr_timestamp' => $dbw->timestamp( $timestamp ),
'fr_metadata' => $this->getMetadataForDb( $dbw ),
'fr_sha1' => $this->sha1
diff --git a/includes/filerepo/file/OldLocalFile.php b/includes/filerepo/file/OldLocalFile.php
index bf5f173fed1d..c63a36b98465 100644
--- a/includes/filerepo/file/OldLocalFile.php
+++ b/includes/filerepo/file/OldLocalFile.php
@@ -483,6 +483,7 @@ class OldLocalFile extends LocalFile {
'fr_height' => intval( $this->height ),
'fr_bits' => $this->bits,
'fr_actor' => $actorId,
+ 'fr_deleted' => 0,
'fr_timestamp' => $dbw->timestamp( $timestamp ),
'fr_metadata' => $this->getMetadataForDb( $dbw ),
'fr_sha1' => $this->sha1