supabase-action-example icon indicating copy to clipboard operation
supabase-action-example copied to clipboard

Add migration lint action

Open sweatybridge opened this issue 3 years ago • 1 comments

sweatybridge avatar Aug 20 '22 05:08 sweatybridge

Squawk Report

🚒 1 violations across 1 file(s)


supabase/migrations/20220810154537_new_employee.sql

create table public.employees (
    id integer primary key generated always as identity,
    name text
);

🚒 Rule Violations (1)

supabase/migrations/20220810154537_new_employee.sql:1:0: warning: prefer-big-int

   1 | create table public.employees (
   2 |     id integer primary key generated always as identity,
   3 |     name text
   4 | );

  note: Hitting the max 32 bit integer is possible and may break your application.
  help: Use 64bit integer values instead to prevent hitting this limit.

📚 More info on rules

⚡️ Powered by Squawk (0.19.0), a linter for PostgreSQL, focused on migrations

github-actions[bot] avatar Aug 20 '22 05:08 github-actions[bot]