Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 512ba1c

Browse files
committed
Temp fix
1 parent ec60ddb commit 512ba1c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

database/schema.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,6 @@ CREATE TABLE `hints_log` (
432432
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
433433
/*!40101 SET character_set_client = @saved_cs_client */;
434434

435-
-- Temp fix by adding dummy row to hints_log
436-
INSERT INTO hints_log (ts, level_id, team_id, penalty) VALUES (NOW(), 0, 0, 0);
437-
438-
439435
--
440436
-- Table structure for table `progressive_log`
441437
--

src/models/HintLog.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ private static function hintlogFromRow(Map<string, string> $row): HintLog {
6464
public static async function genResetHints(): Awaitable<void> {
6565
$db = await self::genDb();
6666
await $db->queryf('DELETE FROM hints_log WHERE id > 0');
67+
// Temp fix by having a dummy row
68+
await $db->query('INSERT INTO hints_log (ts, level_id, team_id, penalty) VALUES (NOW(), 0, 0, 0)');
6769
}
6870

6971
// Check if there is a previous hint.

0 commit comments

Comments
 (0)