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:
parent
b189c95395
commit
eadb27c640
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue