64e6aa67a7
* 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
11 lines
442 B
SQL
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';
|