errors in readme

This commit is contained in:
nek0 2016-03-18 01:02:56 +01:00
parent 800d8e6d24
commit e1d43876fe

View file

@ -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;`