Skip to content

Commit 56efb6e

Browse files
committed
add missing unique key
1 parent b776fd6 commit 56efb6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

database/feshie-structure.sql

+1
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,7 @@ ALTER TABLE `mppt_readings`
10201020
ADD PRIMARY KEY (`id`),
10211021
ADD KEY `device_id` (`device_id`),
10221022
ADD KEY `timestamp` (`timestamp`);
1023+
ADD UNIQUE KEY `device_id_2` (`device_id`,`timestamp`),
10231024

10241025
--
10251026
-- Indexes for table `soc_readings`

0 commit comments

Comments
 (0)