I am making the following deploy
change. Changing the value of a timestamp
column to timestamptz
.
-- Alter the is_deleted flags to be timestamp with time zone
alter table source_meta.sources alter column is_deleted set data type timestamptz
using
is_deleted at time zone 'UTC';
alter table source_meta.series alter column is_deleted set data type timestamptz
using
is_deleted at time zone 'UTC';
How can I write a verify
script that will error if the data type has not been changed?
Also need some help with revert
to drop timezone from a timestamptz.