From 32b132ca108592d70165c5dae1c2bdc624cf7037 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 17 Nov 2023 10:11:12 +0100 Subject: [PATCH] refs #6434 perf: add owner field --- db/changes/234604/00-createSignInLogTable.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/db/changes/234604/00-createSignInLogTable.sql b/db/changes/234604/00-createSignInLogTable.sql index 525348135..59a7a586b 100644 --- a/db/changes/234604/00-createSignInLogTable.sql +++ b/db/changes/234604/00-createSignInLogTable.sql @@ -14,6 +14,7 @@ CREATE TABLE `account`.`signInLog` ( `userFk` int(10) unsigned DEFAULT NULL, `creationDate` timestamp NULL DEFAULT current_timestamp(), `ip` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `owner` tinyint(1) DEFAULT 1, KEY `userFk` (`userFk`), CONSTRAINT `signInLog_ibfk_1` FOREIGN KEY (`userFk`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE );