mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-06 06:25:28 +02:00
- Introduced a new SQL script to update the `createdAt` field in the `environment` table, converting PostgreSQL timestamp formats to ISO 8601 format. - This change addresses issue #2992, ensuring consistency in date formats across environments. - Updated journal to include the new migration tag for tracking purposes.
10 lines
389 B
SQL
10 lines
389 B
SQL
-- 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%';
|
|
|