This commit is contained in:
nek0 2016-05-23 19:25:30 +02:00
parent be24971300
commit 994f2a751f
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ How to do this is described [in my blog][blog].
* stop old matemat
* 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 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" add column "timestamp_temp" date;`
* fill temporary timestamp column with new timestamps with