update tender form

This commit is contained in:
Aya
2026-07-23 10:36:08 +03:00
parent 96386887fb
commit 12578223fd
5 changed files with 85 additions and 54 deletions

View File

@@ -0,0 +1,9 @@
-- Convert leave start/end columns from DATE to TIMESTAMP(3)
-- so that HOURLY leaves can store the actual start/end time of day.
-- Without this, Postgres truncates the time and every hourly leave
-- renders at the company timezone offset (e.g. 03:00) instead of the
-- chosen time.
ALTER TABLE "leaves"
ALTER COLUMN "startDate" TYPE TIMESTAMP(3) USING "startDate"::timestamp(3),
ALTER COLUMN "endDate" TYPE TIMESTAMP(3) USING "endDate"::timestamp(3);