Files
mattermost/server
Miguel de la CruzandMiguel de la Cruz 3cb00848a6 Add COALESCE guard for property values before PSAv2 migrations (#36079)
Rows created before the CreatedBy/UpdatedBy columns were added have NULL
in those fields, causing a scan error when reading them. Wraps those
columns with COALESCE(..., '') in the tableSelectQuery and in the Upsert
RETURNING clause.

Also removes the propertyValueColumns shared variable, inlining the
column lists directly in each INSERT statement to match the pattern used
in the property field store.

Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es>
2026-04-14 20:46:11 +00:00
..
2024-05-15 12:05:13 -03:00