From ca2a4ec365b7bdbd8cf4e2538d515cb5c5c4095e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 11 Nov 2022 19:17:43 -0800 Subject: [PATCH] Use boolean in sql declaration, which is an alias for int anyway. --- etiquette/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/constants.py b/etiquette/constants.py index e903fe8..ab2ff52 100644 --- a/etiquette/constants.py +++ b/etiquette/constants.py @@ -82,7 +82,7 @@ CREATE TABLE IF NOT EXISTS photos( thumbnail TEXT, tagged_at INT, author_id INT, - searchhidden INT, + searchhidden BOOLEAN, -- GENERATED COLUMNS area INT GENERATED ALWAYS AS (width * height) VIRTUAL, aspectratio REAL GENERATED ALWAYS AS (1.0 * width / height) VIRTUAL,