Skip to content

Commit b1f9a6d

Browse files
authored
fix: use timestamptz instead of timestamp (#12425)
* fix: use timestampz instead of timestamp * fix: timestamptz
1 parent 3e99c03 commit b1f9a6d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

coderd/database/queries.sql.go

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/workspaces.sql

+7-7
Original file line numberDiff line numberDiff line change
@@ -302,27 +302,27 @@ WHERE
302302
UNION ALL
303303
SELECT
304304
'00000000-0000-0000-0000-000000000000'::uuid, -- id
305-
'0001-01-01 00:00:00+00'::timestamp, -- created_at
306-
'0001-01-01 00:00:00+00'::timestamp, -- updated_at
305+
'0001-01-01 00:00:00+00'::timestamptz, -- created_at
306+
'0001-01-01 00:00:00+00'::timestamptz, -- updated_at
307307
'00000000-0000-0000-0000-000000000000'::uuid, -- owner_id
308308
'00000000-0000-0000-0000-000000000000'::uuid, -- organization_id
309309
'00000000-0000-0000-0000-000000000000'::uuid, -- template_id
310310
false, -- deleted
311311
'**TECHNICAL_ROW**', -- name
312312
'', -- autostart_schedule
313313
0, -- ttl
314-
'0001-01-01 00:00:00+00'::timestamp, -- last_used_at
315-
'0001-01-01 00:00:00+00'::timestamp, -- dormant_at
316-
'0001-01-01 00:00:00+00'::timestamp, -- deleting_at
314+
'0001-01-01 00:00:00+00'::timestamptz, -- last_used_at
315+
'0001-01-01 00:00:00+00'::timestamptz, -- dormant_at
316+
'0001-01-01 00:00:00+00'::timestamptz, -- deleting_at
317317
'never'::automatic_updates, -- automatic_updates
318318
false, -- favorite
319319
-- Extra columns added to `filtered_workspaces`
320320
'', -- template_name
321321
'00000000-0000-0000-0000-000000000000'::uuid, -- template_version_id
322322
'', -- template_version_name
323323
'', -- username
324-
'0001-01-01 00:00:00+00'::timestamp, -- latest_build_completed_at,
325-
'0001-01-01 00:00:00+00'::timestamp, -- latest_build_canceled_at,
324+
'0001-01-01 00:00:00+00'::timestamptz, -- latest_build_completed_at,
325+
'0001-01-01 00:00:00+00'::timestamptz, -- latest_build_canceled_at,
326326
'', -- latest_build_error
327327
'start'::workspace_transition -- latest_build_transition
328328
WHERE

0 commit comments

Comments
 (0)