mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-27 22:18:47 +00:00
Merge pull request #3083 from Dokploy/2992-inconsistent-date-formats-for-environments
feat: add SQL script to standardize date formats in environment table
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
-- Fix inconsistent date formats in environment.createdAt field
|
||||||
|
-- Convert PostgreSQL timestamp format to ISO 8601 format
|
||||||
|
-- This addresses issue #2992 where old environments have PostgreSQL timestamp format
|
||||||
|
-- while new ones have ISO 8601 format
|
||||||
|
|
||||||
|
UPDATE "environment"
|
||||||
|
SET "createdAt" = to_char("createdAt"::timestamptz, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"')
|
||||||
|
WHERE "createdAt" NOT LIKE '%T%';
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -848,6 +848,13 @@
|
|||||||
"when": 1762632540024,
|
"when": 1762632540024,
|
||||||
"tag": "0120_lame_captain_midlands",
|
"tag": "0120_lame_captain_midlands",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 121,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1763755037033,
|
||||||
|
"tag": "0121_rainy_cargill",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user