Files
accounted/supabase/migrations/20260513130000_invoice_company_name_position.sql
Mattsson 64e6aa67a7 Fix/minor UI fixes (#459)
* feat(settings): add option for company name position in invoice PDF

* feat(migrations): add backfill for VAT account labels to correct bad seed data

* feat(migrations): add backfill for VAT account labels to correct bad seed data

* fix(ui): improve accessibility for company name position toggle in PDF settings
2026-05-13 10:45:08 +02:00

11 lines
442 B
SQL

-- Add invoice_company_name_position to control whether the company name
-- appears in the invoice PDF header (under the logo) or in the footer.
-- Default 'header' preserves existing layout for all current users.
ALTER TABLE public.company_settings
ADD COLUMN IF NOT EXISTS invoice_company_name_position text
NOT NULL DEFAULT 'header'
CHECK (invoice_company_name_position IN ('header', 'footer'));
NOTIFY pgrst, 'reload schema';