micrach/migrations/4-posts_timefields_now_with_timezone.sql
Yanislav Igonin 783e577311
Feature - Threads archivation (#4)
* todo

* update env var

* add new var to config

* update GetCount (not archived threads)

* wip on threads count check

* feat: add get oldest updated at thread

* feat: add archivation method for oldest threads

* feat: add migrations for posts timefields

* feat: now child posts created without updated_at

* feat: add threads archivation
2021-11-20 20:13:05 +03:00

6 lines
121 B
SQL

ALTER TABLE posts
ALTER COLUMN created_at TYPE timestamptz;
ALTER TABLE posts
ALTER COLUMN updated_at TYPE timestamptz;