Migrations with default boolean are failed as volatile
Author: tommoorCreated Oct 1, 2024Updated Sep 24, 2026
Provide the Bytebase version you are using
v2.23.0
Describe the bug
When adding a migration with a default boolean value this is detected as volatile, creating a review violation. Booleans are deterministic and not considered volatile.
Steps to reproduce
- Go to change data
- Create a migration with a boolean default, e.g.
ALTER TABLE "team_membership" ADD "test" boolean NOT NULL DEFAULT false; - Click "Run checks"
Expected behavior
It passes checks
Provide the database you are using
PostgreSQL
Provide the version control system you are using
No response
Additional context
Enterprise license
Source: bytebase/bytebase