mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd/database): migrate workspaces.last_used_at to timestamptz (#9699)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE ONLY workspaces
|
||||
ALTER COLUMN last_used_at
|
||||
SET DATA TYPE timestamp
|
||||
USING last_used_at::timestamptz AT TIME ZONE 'UTC',
|
||||
ALTER COLUMN last_used_at
|
||||
SET DEFAULT '0001-01-01 00:00:00'::timestamp;
|
||||
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE ONLY workspaces
|
||||
ALTER COLUMN last_used_at
|
||||
SET DATA TYPE timestamptz
|
||||
USING last_used_at::timestamp AT TIME ZONE 'UTC',
|
||||
ALTER COLUMN last_used_at
|
||||
SET DEFAULT '0001-01-01 00:00:00+00:00'::timestamptz;
|
||||
Reference in New Issue
Block a user