Don't set the Updated field in the Artists table

The DB does it automatically
This commit is contained in:
Mike Colagrosso 2024-01-16 20:50:06 -07:00 committed by Alex Cabal
parent 60c6142688
commit 31d927ce2b

View file

@ -690,8 +690,6 @@ class Artwork extends PropertiesBase{
$this->Validate($uploadedFile); $this->Validate($uploadedFile);
$this->Updated = new DateTime();
$tags = []; $tags = [];
foreach($this->Tags as $artworkTag){ foreach($this->Tags as $artworkTag){
$tags[] = ArtworkTag::GetOrCreate($artworkTag); $tags[] = ArtworkTag::GetOrCreate($artworkTag);
@ -709,7 +707,6 @@ class Artwork extends PropertiesBase{
CompletedYear = ?, CompletedYear = ?,
CompletedYearIsCirca = ?, CompletedYearIsCirca = ?,
Created = ?, Created = ?,
Updated = ?,
Status = ?, Status = ?,
SubmitterUserId = ?, SubmitterUserId = ?,
ReviewerUserId = ?, ReviewerUserId = ?,
@ -726,7 +723,7 @@ class Artwork extends PropertiesBase{
where where
ArtworkId = ? ArtworkId = ?
', [$this->Artist->ArtistId, $this->Name, $this->UrlName, $this->CompletedYear, $this->CompletedYearIsCirca, ', [$this->Artist->ArtistId, $this->Name, $this->UrlName, $this->CompletedYear, $this->CompletedYearIsCirca,
$this->Created, $this->Updated, $this->Status, $this->SubmitterUserId, $this->ReviewerUserId, $this->MuseumUrl, $this->PublicationYear, $this->PublicationYearPageUrl, $this->Created, $this->Status, $this->SubmitterUserId, $this->ReviewerUserId, $this->MuseumUrl, $this->PublicationYear, $this->PublicationYearPageUrl,
$this->CopyrightPageUrl, $this->ArtworkPageUrl, $this->IsPublishedInUs, $this->EbookWwwFilesystemPath, $this->MimeType, $this->Exception, $this->Notes, $this->CopyrightPageUrl, $this->ArtworkPageUrl, $this->IsPublishedInUs, $this->EbookWwwFilesystemPath, $this->MimeType, $this->Exception, $this->Notes,
$this->ArtworkId] $this->ArtworkId]
); );