-- Set COLLATE "C" on position columns so fractional indexing sorts correctly.
-- en_US.utf8 collation is case-insensitive and breaks lexicographic ordering.
-- This must run after prisma db push since push may reset column types.

ALTER TABLE columns ALTER COLUMN position SET DATA TYPE text COLLATE "C";
ALTER TABLE cards ALTER COLUMN position SET DATA TYPE text COLLATE "C";
