Commit 16cda723 by Daniel Lee

migrations: dashboard version migration handles nulls

If a dashboard has a null value for updated_by then the migration
for the dashboard version table fails. This change uses coalesce to
set -1 instead of null when inserting into the created_by column
which has a non-null constraint. Fixes #8783.
parent 36a1ab48
......@@ -50,7 +50,7 @@ SELECT
dashboard.version,
dashboard.version,
dashboard.updated,
dashboard.updated_by,
COALESCE(dashboard.updated_by, -1),
'',
dashboard.data
FROM dashboard;`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment