我正在进行以下deploy
更改。timestamp
将列的值更改为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';
verify
如果数据类型未更改,如何编写会出错的脚本?
还需要一些帮助revert
来从时间戳记中删除时区。