Files
accounted/supabase/migrations/20260521120050_company_settings_swish.sql
Mattsson e4488a900b feat: add user locale preference to user_preferences table (#555)
* feat: add user locale preference to user_preferences table

- Introduced a new column 'locale' in the user_preferences table to store per-user UI language preferences.
- Added a CHECK constraint to ensure only supported locales ('sv', 'en') are allowed.
- Triggered a schema reload notification for the changes.

chore: declare CSS module support in TypeScript

- Added a declaration for CSS modules in globals.d.ts to enable TypeScript support for importing CSS files.

* feat: add Swish as an invoice payment method in company settings
2026-05-21 21:33:22 +02:00

12 lines
528 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Add Swish as an invoice payment method.
-- Mirrors invoice_show_bankgiro / invoice_show_plusgiro from 20260401200000.
-- swish accepts either a Swish-företag/handel number (12300000001239999999)
-- or a Swedish mobile (07X). Validation is enforced in lib/api/schemas.ts;
-- the column is plain text so historical/unusual values remain accepted.
ALTER TABLE public.company_settings
ADD COLUMN IF NOT EXISTS swish text,
ADD COLUMN IF NOT EXISTS invoice_show_swish boolean DEFAULT true;
NOTIFY pgrst, 'reload schema';