Use boolean in sql declaration, which is an alias for int anyway.

This commit is contained in:
voussoir 2022-11-11 19:17:43 -08:00
parent 1477a7668d
commit ca2a4ec365

View file

@ -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,