Skip to content

Commit 9f1645d

Browse files
committed
remove "events"
1 parent a1679de commit 9f1645d

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

Diff for: resources/lib/UnitySQL.php

-13
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
{

Diff for: tools/docker-dev/sql/bootstrap.sql

-26
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,6 @@ CREATE TABLE `audit_log` (
5151

5252
-- --------------------------------------------------------
5353

54-
--
55-
-- Table structure for table `events`
56-
--
57-
58-
CREATE TABLE `events` (
59-
`id` int(11) NOT NULL,
60-
`operator` varchar(128) NOT NULL,
61-
`action` varchar(300) NOT NULL,
62-
`entity` varchar(300) NOT NULL,
63-
`timestamp` timestamp NOT NULL DEFAULT current_timestamp()
64-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
65-
66-
-- --------------------------------------------------------
67-
6854
--
6955
-- Table structure for table `groupJoinRequests`
7056
--
@@ -234,12 +220,6 @@ ALTER TABLE `account_deletion_requests`
234220
ALTER TABLE `audit_log`
235221
ADD PRIMARY KEY (`id`);
236222

237-
--
238-
-- Indexes for table `events`
239-
--
240-
ALTER TABLE `events`
241-
ADD PRIMARY KEY (`id`);
242-
243223
--
244224
-- Indexes for table `groupJoinRequests`
245225
--
@@ -316,12 +296,6 @@ ALTER TABLE `account_deletion_requests`
316296
ALTER TABLE `audit_log`
317297
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
318298

319-
--
320-
-- AUTO_INCREMENT for table `events`
321-
--
322-
ALTER TABLE `events`
323-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
324-
325299
--
326300
-- AUTO_INCREMENT for table `groupJoinRequests`
327301
--

0 commit comments

Comments
 (0)