From 84097020818a4585c108859aedeae4dc4edab35a Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 1 Sep 2019 15:06:25 +1000 Subject: [PATCH] add columns for caching user/bot icons --- setup.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.sql b/setup.sql index c3db47a..fce1971 100644 --- a/setup.sql +++ b/setup.sql @@ -23,6 +23,8 @@ CREATE TABLE IF NOT EXISTS `bots` ( `post_privacy` ENUM('public', 'unlisted', 'followers_only') DEFAULT 'unlisted', `learn_from_cw` BOOLEAN DEFAULT 0, `last_post` DATETIME DEFAULT 0, + `icon` VARCHAR(512), + `icon_update_time` DATETIME DEFAULT 0, FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `credentials` ( @@ -34,6 +36,8 @@ CREATE TABLE IF NOT EXISTS `credentials` ( CREATE TABLE IF NOT EXISTS `fedi_account` ( `handle` VARCHAR(128) NOT NULL PRIMARY KEY, `outbox` VARCHAR(256), + `icon` VARCHAR(512), + `icon_update_time` DATETIME DEFAULT 0, FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS `posts` (