Files
accounted/supabase/migrations/20260513120000_invoice_show_company_name.sql
Mattsson 7738f286af feat(settings): add toggle for displaying company name on invoice PDF… (#457)
* feat(settings): add toggle for displaying company name on invoice PDF header

* fix(migrations): rename duplicate-timestamped migration to unique version

Two migrations shared timestamp 20260513120000, causing schema_migrations
PK collision (SQLSTATE 23505) on apply. Bump the VAT seed migration to
20260513120100 so both insert cleanly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 09:33:06 +02:00

9 lines
358 B
SQL

-- Add invoice_show_company_name toggle for invoice PDF header.
-- When false, the company name is hidden under the logo in the invoice PDF.
-- Default true preserves existing invoice layout for all current users.
ALTER TABLE public.company_settings
ADD COLUMN IF NOT EXISTS invoice_show_company_name boolean DEFAULT true;
NOTIFY pgrst, 'reload schema';