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

Commit ec60ddb

Browse files
committed
Temp fix by adding dummy data to prevent SQL queries
1 parent 17588b9 commit ec60ddb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

database/schema.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ CREATE TABLE `attachments` (
9090
`created_ts` timestamp NOT NULL DEFAULT 0,
9191
PRIMARY KEY (`id`)
9292
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
93+
94+
-- Temp Fix by having a dummy row to prevent constant SELECT queries
95+
INSERT INTO attachments (filename, type, level_id, created_ts) VALUES ("test", "text/plain", 0, NOW());
9396
/*!40101 SET character_set_client = @saved_cs_client */;
9497

9598
--
@@ -429,6 +432,9 @@ CREATE TABLE `hints_log` (
429432
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
430433
/*!40101 SET character_set_client = @saved_cs_client */;
431434

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+
432438

433439
--
434440
-- Table structure for table `progressive_log`

0 commit comments

Comments
 (0)