mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-27 05:58:46 +00:00
feat: add SQL script to standardize date formats in environment table
- 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.
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