From 031c5736465d2fefe8f0cf5feb991046e549cfce Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 30 Nov 2022 19:25:47 -0500 Subject: [PATCH] Rename Snapshot_Events to Snapshots_Events --- web/includes/Snapshot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/includes/Snapshot.php b/web/includes/Snapshot.php index 40a22cc9f..96e980aad 100644 --- a/web/includes/Snapshot.php +++ b/web/includes/Snapshot.php @@ -28,14 +28,14 @@ class Snapshot extends ZM_Object { public function delete() { if ( property_exists($this, 'Id') ) { - dbQuery('DELETE FROM `Snapshot_Events` WHERE `SnapshotId`=?', array($this->{'Id'})); + dbQuery('DELETE FROM `Snapshots_Events` WHERE `SnapshotId`=?', array($this->{'Id'})); dbQuery('DELETE FROM `Snapshots` WHERE `Id`=?', array($this->{'Id'})); } } public function EventIds( ) { if ( ! property_exists($this, 'EventIds') ) { - $this->{'EventIds'} = dbFetchAll('SELECT `EventId` FROM `Snapshot_Events` WHERE `SnapshotId`=?', 'EventId', array($this->{'Id'})); + $this->{'EventIds'} = dbFetchAll('SELECT `EventId` FROM `Snapshots_Events` WHERE `SnapshotId`=?', 'EventId', array($this->{'Id'})); } return $this->{'EventIds'}; } @@ -49,7 +49,7 @@ class Snapshot extends ZM_Object { } # end class Snapshot class Snapshot_Event extends ZM_Object { - protected static $table = 'Snapshot_Events'; + protected static $table = 'Snapshots_Events'; protected $defaults = array( 'Id' => null, 'EventId' => 0,