Eugene 🔒 lint report of examples/E11/bad/1.sql

This is a human readable SQL script safety report generated by eugene. Keep in mind that lints can be ignored by adding a -- eugene: ignore E123 comment to the SQL statement or by passing --ignore E123 on the command line.

The migration script passed all the checks ✅

Statement number 1

SQL

-- 1.sql
create table prices (
    price int not null
)

No checks matched for this statement. ✅

Eugene 🔒 lint report of examples/E11/bad/2.sql

This is a human readable SQL script safety report generated by eugene. Keep in mind that lints can be ignored by adding a -- eugene: ignore E123 comment to the SQL statement or by passing --ignore E123 on the command line.

The migration script did not pass all the checks ❌

Statement number 1

SQL

-- 2.sql
set local lock_timeout = '2s'

No checks matched for this statement. ✅

Statement number 2

SQL

alter table prices
    add column id serial

Lints

Adding a SERIAL or GENERATED ... STORED column

ID: E11

A new column was added with a SERIAL or GENERATED type. This blocks all table access until the table is rewritten. A safer way is: Can not be done without a table rewrite.

Added column id with type that will force table rewrite in .prices. serial types and GENERATED ALWAYS as ... STORED columns require a full table rewrite with AccessExclusiveLock.