Skip to content

Commit 26603d8

Browse files
committed
remove "events", "sso_log" (#159)
* remove "events" * remove "sso_log"
1 parent 18a3f9d commit 26603d8

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

resources/lib/UnitySQL.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class UnitySQL
88
{
99
private const TABLE_REQS = "requests";
1010
private const TABLE_NOTICES = "notices";
11-
private const TABLE_SSOLOG = "sso_log";
1211
private const TABLE_PAGES = "pages";
13-
private const TABLE_EVENTS = "events";
1412
private const TABLE_AUDIT_LOG = "audit_log";
1513
private const TABLE_ACCOUNT_DELETION_REQUESTS = "account_deletion_requests";
1614
private const TABLE_SITEVARS = "sitevars";
@@ -235,18 +233,6 @@ public function editPage($id, $content, $operator)
235233
);
236234
}
237235

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

tools/docker-dev/sql/bootstrap.sql

Lines changed: 0 additions & 54 deletions
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
--
@@ -202,21 +188,6 @@ CREATE TABLE `sitevars` (
202188
`value` varchar(768) NOT NULL
203189
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
204190

205-
-- --------------------------------------------------------
206-
207-
--
208-
-- Table structure for table `sso_log`
209-
--
210-
211-
CREATE TABLE `sso_log` (
212-
`id` int(10) NOT NULL,
213-
`uid` varchar(300) NOT NULL,
214-
`firstname` varchar(300) NOT NULL,
215-
`lastname` varchar(300) NOT NULL,
216-
`mail` varchar(300) NOT NULL,
217-
`org` varchar(300) NOT NULL
218-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
219-
220191
--
221192
-- Indexes for dumped tables
222193
--
@@ -233,12 +204,6 @@ ALTER TABLE `account_deletion_requests`
233204
ALTER TABLE `audit_log`
234205
ADD PRIMARY KEY (`id`);
235206

236-
--
237-
-- Indexes for table `events`
238-
--
239-
ALTER TABLE `events`
240-
ADD PRIMARY KEY (`id`);
241-
242207
--
243208
-- Indexes for table `groupJoinRequests`
244209
--
@@ -293,12 +258,6 @@ ALTER TABLE `requests`
293258
ALTER TABLE `sitevars`
294259
ADD PRIMARY KEY (`id`);
295260

296-
--
297-
-- Indexes for table `sso_log`
298-
--
299-
ALTER TABLE `sso_log`
300-
ADD PRIMARY KEY (`id`);
301-
302261
--
303262
-- AUTO_INCREMENT for dumped tables
304263
--
@@ -315,12 +274,6 @@ ALTER TABLE `account_deletion_requests`
315274
ALTER TABLE `audit_log`
316275
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
317276

318-
--
319-
-- AUTO_INCREMENT for table `events`
320-
--
321-
ALTER TABLE `events`
322-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
323-
324277
--
325278
-- AUTO_INCREMENT for table `groupJoinRequests`
326279
--
@@ -375,13 +328,6 @@ ALTER TABLE `requests`
375328
ALTER TABLE `sitevars`
376329
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
377330

378-
--
379-
-- AUTO_INCREMENT for table `sso_log`
380-
--
381-
ALTER TABLE `sso_log`
382-
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
383-
COMMIT;
384-
385331
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
386332
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
387333
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
 (0)