diff --git a/modules/db/db_template.sql b/modules/db/db_template.sql index c9cf37a..1f68141 100644 --- a/modules/db/db_template.sql +++ b/modules/db/db_template.sql @@ -166,3 +166,6 @@ CREATE TABLE IF NOT EXISTS `devices` ( FOREIGN KEY (`user`) REFERENCES `login`(`id`), FOREIGN KEY (`akey`) REFERENCES `accounts`(`akey`) ); + +-- Drop index on logs if present +CREATE INDEX logs_akey_idx ON logs (akey);