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:
Mauricio Siu
2025-11-21 15:02:52 -05:00
committed by GitHub
3 changed files with 6738 additions and 0 deletions

View File

@@ -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

View File

@@ -848,6 +848,13 @@
"when": 1762632540024,
"tag": "0120_lame_captain_midlands",
"breakpoints": true
},
{
"idx": 121,
"version": "7",
"when": 1763755037033,
"tag": "0121_rainy_cargill",
"breakpoints": true
}
]
}