Skip to content

Commit 6a0aedf

Browse files
committed
delete "events"
1 parent 682c3b9 commit 6a0aedf

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

resources/lib/UnitySQL.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class UnitySQL
1010
private const TABLE_NOTICES = "notices";
1111
private const TABLE_SSOLOG = "sso_log";
1212
private const TABLE_PAGES = "pages";
13-
private const TABLE_EVENTS = "events";
1413
private const TABLE_AUDIT_LOG = "audit_log";
1514
private const TABLE_ACCOUNT_DELETION_REQUESTS = "account_deletion_requests";
1615
private const TABLE_SITEVARS = "sitevars";
@@ -234,18 +233,6 @@ public function editPage($id, $content, $operator)
234233
);
235234
}
236235

237-
public function addEvent($operator, $action, $entity)
238-
{
239-
$stmt = $this->conn->prepare(
240-
"INSERT INTO " . self::TABLE_EVENTS . " (operator, action, entity) VALUE (:operator, :action, :entity)"
241-
);
242-
$stmt->bindParam(":operator", $operator);
243-
$stmt->bindParam(":action", $action);
244-
$stmt->bindParam(":entity", $entity);
245-
246-
$stmt->execute();
247-
}
248-
249236
// audit log table methods
250237
public function addLog($operator, $operator_ip, $action_type, $recipient)
251238
{

tools/docker-dev/sql/bootstrap.sql

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ CREATE TABLE `audit_log` (
3636
`recipient` varchar(1000) NOT NULL
3737
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
3838

39-
CREATE TABLE `events` (
40-
`id` int(11) NOT NULL,
41-
`operator` varchar(300) NOT NULL,
42-
`action` varchar(300) NOT NULL,
43-
`entity` varchar(300) NOT NULL,
44-
`timestamp` timestamp NOT NULL DEFAULT current_timestamp()
45-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
46-
4739
CREATE TABLE `groupJoinRequests` (
4840
`id` int(11) NOT NULL,
4941
`group_name` varchar(1000) NOT NULL,
@@ -137,9 +129,6 @@ ALTER TABLE `account_deletion_requests`
137129
ALTER TABLE `audit_log`
138130
ADD PRIMARY KEY (`id`);
139131

140-
ALTER TABLE `events`
141-
ADD PRIMARY KEY (`id`);
142-
143132
ALTER TABLE `groupJoinRequests`
144133
ADD PRIMARY KEY (`id`);
145134

@@ -176,9 +165,6 @@ ALTER TABLE `account_deletion_requests`
176165
ALTER TABLE `audit_log`
177166
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
178167

179-
ALTER TABLE `events`
180-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
181-
182168
ALTER TABLE `groupJoinRequests`
183169
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
184170

0 commit comments

Comments
 (0)