Skip to content

remove "events", "sso_log" #159

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
14 changes: 0 additions & 14 deletions resources/lib/UnitySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ class UnitySQL
{
private const TABLE_REQS = "requests";
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 +232,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
54 changes: 0 additions & 54 deletions tools/docker-dev/sql/bootstrap.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,6 @@ CREATE TABLE `audit_log` (

-- --------------------------------------------------------

--
-- Table structure for table `events`
--

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;

-- --------------------------------------------------------

--
-- Table structure for table `groupJoinRequests`
--
Expand Down Expand Up @@ -203,21 +189,6 @@ CREATE TABLE `sitevars` (
`value` varchar(768) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sso_log`
--

CREATE TABLE `sso_log` (
`id` int(10) NOT NULL,
`uid` varchar(300) NOT NULL,
`firstname` varchar(300) NOT NULL,
`lastname` varchar(300) NOT NULL,
`mail` varchar(300) NOT NULL,
`org` varchar(300) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Indexes for dumped tables
--
Expand All @@ -234,12 +205,6 @@ ALTER TABLE `account_deletion_requests`
ALTER TABLE `audit_log`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `events`
--
ALTER TABLE `events`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `groupJoinRequests`
--
Expand Down Expand Up @@ -294,12 +259,6 @@ ALTER TABLE `requests`
ALTER TABLE `sitevars`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sso_log`
--
ALTER TABLE `sso_log`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--
Expand All @@ -316,12 +275,6 @@ ALTER TABLE `account_deletion_requests`
ALTER TABLE `audit_log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `groupJoinRequests`
--
Expand Down Expand Up @@ -376,13 +329,6 @@ ALTER TABLE `requests`
ALTER TABLE `sitevars`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sso_log`
--
ALTER TABLE `sso_log`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Loading