fp/services/migrations-schema/migrations/00080_add-created_at-to-vtu...

11 lines
300 B
SQL

ALTER TABLE api.vtubers
ADD COLUMN created_at TIMESTAMP(6) WITHOUT TIME ZONE;
ALTER TABLE api.vtubers
ADD COLUMN updated_at TIMESTAMP(6) WITHOUT TIME ZONE;
ALTER TABLE api.vtubers
ALTER COLUMN created_at SET DEFAULT now();
ALTER TABLE api.vtubers
ALTER COLUMN updated_at SET DEFAULT now();