Adjust the how to save the year in the messages table

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-01-25 15:14:00 +01:00
parent b189c95395
commit eadb27c640

View file

@ -2,7 +2,7 @@
-- on.
ALTER TABLE messages ADD COLUMN year integer;
INSERT INTO messages(year) select extract(year from timestamp) from messages;
update messages set year = extract(year from timestamp);