     OR widget->'gridcolumn' IS NOT NULL
     OR widget->'gridrow' IS NOT NULL
     OR widget->'width' IS NOT NULL
-    OR widget->'position' IS NOT NULL;
+    OR widget->'position' IS NOT NULL
+    OR widget->'layout'->'minW' IS NOT NULL
+    OR widget->'layout'->'static' IS NOT NULL
+    OR widget->'layout'->'moved' IS NOT NULL;

    AND widget->'layout' is NULL
    AND widget->'width' is NOT NULL;

UPDATE project_widgets
SET widget = widget - 'width' - 'position' - 'gridcolumn' - 'gridrow'
WHERE widget->'layout' is NOT NULL;

-- Check all widget
SELECT widget

-- Reset id numbers. about 25 projects have duplicate ids
UPDATE project_widgets p
SET widget = nw.new_widget
FROM (SELECT widget_uid,
