colouring-montreal/migrations/012.bulk-extracts.down.sql
2019-10-01 14:57:11 +01:00

8 lines
323 B
SQL

DROP TABLE IF EXISTS bulk_extracts;
-- convert all existing timestamp columns to timestamptz assuming UTC
ALTER TABLE logs ALTER log_timestamp TYPE timestamp;
ALTER TABLE users
ALTER registered TYPE timestamp,
ALTER deleted_on TYPE timestamp;
ALTER TABLE user_password_reset_tokens ALTER expires_on TYPE timestamp;