ALTER TABLE creative_projects
    ALTER COLUMN play_count TYPE bigint USING (
        CASE
            WHEN btrim(play_count) ~ '^[0-9]+$'
                AND btrim(play_count)::numeric <= 9223372036854775807
            THEN btrim(play_count)::bigint
            ELSE NULL
        END
    ),
    ADD CONSTRAINT creative_projects_play_count_check
        CHECK (play_count IS NULL OR play_count >= 0);
