Plausible r2023.09.18-192: [migration] Data fix: rewrite goals for which `event_name` and `page_… Release
요약
두 경우 모두 path`가 존재 (#3357)
- event_name과 page_path 둘 다 존재하는 목표를 재작성합니다.
이는 이전 양식에서 뷰포트에서 양식 필드를 숨기기만 하여 탭을 전환할 때 특정 경우에 두 값 모두 제출 할 수 있도록했을 수 있습니다. 탭 동작은 #3293 이후로 변경되었지만 적절한 제약이 존재하지 않았습니다.
타당성 스키마에 새로운 체크 제약 조건 추가
체크 제약 조건을 추가하기 위해 NOT VALID 옵션 사용
단일 트랜잭션으로 마이그레이션을 감싸지 않음
원문 내용
…path` both exist (#3357)
- Rewrite goals for which both event_name and page_path exist.
This might've happened due to the old form only hiding form
fields from the viewport, allowing to submit both values in
certain cases when switching tabs. The tabs behaviour has
been changed as of #3293 but no proper constraints existed.
Add new check constraint to the goals schema
Use NOT VALID option for adding the CHECK constraint
Skip wrapping migration in a single transaction
링크 : https://github.com/plausible/analytics/releases/tag/r2023.09.18-192