Skip to content

delete "events" #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions resources/lib/UnitySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class UnitySQL
private const TABLE_NOTICES = "notices";
private const TABLE_SSOLOG = "sso_log";
private const TABLE_PAGES = "pages";
private const TABLE_EVENTS = "events";
private const TABLE_AUDIT_LOG = "audit_log";
private const TABLE_ACCOUNT_DELETION_REQUESTS = "account_deletion_requests";
private const TABLE_SITEVARS = "sitevars";
Expand Down Expand Up @@ -234,18 +233,6 @@ public function editPage($id, $content, $operator)
);
}

public function addEvent($operator, $action, $entity)
{
$stmt = $this->conn->prepare(
"INSERT INTO " . self::TABLE_EVENTS . " (operator, action, entity) VALUE (:operator, :action, :entity)"
);
$stmt->bindParam(":operator", $operator);
$stmt->bindParam(":action", $action);
$stmt->bindParam(":entity", $entity);

$stmt->execute();
}

// audit log table methods
public function addLog($operator, $operator_ip, $action_type, $recipient)
{
Expand Down
14 changes: 0 additions & 14 deletions tools/docker-dev/sql/bootstrap.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ CREATE TABLE user_last_logins (
`last_login` timestamp NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE `events` (
`id` int(11) NOT NULL,
`operator` varchar(128) NOT NULL,
`action` varchar(300) NOT NULL,
`entity` varchar(300) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE `groupJoinRequests` (
`id` int(11) NOT NULL,
`group_name` varchar(768) NOT NULL,
Expand Down Expand Up @@ -146,9 +138,6 @@ ALTER TABLE `audit_log`
ALTER TABLE `user_last_logins`
ADD PRIMARY KEY (`operator`);

ALTER TABLE `events`
ADD PRIMARY KEY (`id`);

ALTER TABLE `groupJoinRequests`
ADD PRIMARY KEY (`id`);

Expand Down Expand Up @@ -185,9 +174,6 @@ ALTER TABLE `account_deletion_requests`
ALTER TABLE `audit_log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

ALTER TABLE `events`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

ALTER TABLE `groupJoinRequests`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

Expand Down
Loading