Files
windmill/backend/migrations/20241205135747_fix_flow_node_uniqueness.down.sql
Lucas Abel 667167a022 fix: fix flow_node uniqueness (#4850)
`jsonb` comparison wasn't working as expected, and duplicated entries
were inserted within `flow_node`. To resolve this add a second hash
column, `hash_v2` with a unique default for uniqueness, and use this new
column to ensure unique entries. The previous hash column is left for
backward compatibility. Duplicated entries already insterted will remain
as is without breaking, and only new ones will preserve uniqueness.
2024-12-05 17:42:33 +01:00

3 lines
77 B
SQL

-- Add down migration script here
ALTER TABLE flow_node DROP COLUMN hash_v2;