From e1d43876fe8ce16f1473aaf6541573985bdc33f7 Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 18 Mar 2016 01:02:56 +0100 Subject: [PATCH] errors in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 11ed763..a17b669 100644 --- a/README.md +++ b/README.md @@ -104,9 +104,9 @@ How to do this is described [in my blog][blog]. * create a view with new and old timestamps and user ids with `create or replace view "user_new" as select "user".id, "user".timestamp, date 'epoch' + "user".timestamp * interval '1 second' as timestamp_new from "user"; * create temporary timestamp column in user table with - `alter table "user" create column "timestamp_temp";` + `alter table "user" add column "timestamp_temp" date;` * fill temporary timestamp column with new timestamps with - `update "user" set timestamp_temp = (select timestamp_new from from user_new where user_new.id = "user".id)` + `update "user" set timestamp_temp = (select timestamp_new from user_new where user_new.id = "user".id);` * check if new timestamps look sane * drop old timestamp column `alter table "user" drop column timestamp cascade;`