tvl-depot/migrations/2018-04-08-172739_default_posted/up.sql

2 lines
158 B
SQL

ALTER TABLE threads ALTER COLUMN posted SET DEFAULT (NOW() AT TIME ZONE 'UTC');
ALTER TABLE posts ALTER COLUMN posted SET DEFAULT (NOW() AT TIME ZONE 'UTC');