← all rules

forbidden-column-type

warning

Forbidden column type

Why it's unsafe

A column uses a type your policy disallows (e.g. timestamp banned in favor of timestamptz).

Safe rewrite

Change the column to an allowed type, or remove this type from the [forbidden-types] section of your config.

Example

Try it in the playground →

Unsafe

CREATE TABLE events (occurred_at timestamp);

Safe

CREATE TABLE events (occurred_at timestamptz);

Related