From 9885d3190c84a8a7f2a754b555eab652783631ba Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sat, 9 Jan 2021 19:40:01 -0800 Subject: [PATCH] fix example sql --- examples/database/create_database_tables.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/database/create_database_tables.sql b/examples/database/create_database_tables.sql index 080a7db..63dd202 100644 --- a/examples/database/create_database_tables.sql +++ b/examples/database/create_database_tables.sql @@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS photo( contributor_id INT NOT NULL, timestamp TIMESTAMP WITHOUT TIME ZONE, timestamp_int BIGINT, - photo_format CHAR(12), + photo_format VARCHAR(12), photo_width INT, photo_height INT, photo_1280_width INT, @@ -57,7 +57,7 @@ CREATE TABLE IF NOT EXISTS photo( ALTER TABLE photo ADD COLUMN IF NOT EXISTS contributor_id INT NOT NULL; ALTER TABLE photo ADD COLUMN IF NOT EXISTS timestamp TIMESTAMP WITHOUT TIME ZONE; ALTER TABLE photo ADD COLUMN IF NOT EXISTS timestamp_int BIGINT; -ALTER TABLE photo ADD COLUMN IF NOT EXISTS photo_format CHAR(12); +ALTER TABLE photo ADD COLUMN IF NOT EXISTS photo_format VARCHAR(12); ALTER TABLE photo ADD COLUMN IF NOT EXISTS photo_width INT; ALTER TABLE photo ADD COLUMN IF NOT EXISTS photo_height INT; ALTER TABLE photo ADD COLUMN IF NOT EXISTS photo_1280_width INT;