-- Migration: 019_FixInvoiceLinesColumn
-- Description: Change lines column from jsonb to text (matches C# string serialization)
-- This is required because Dapper doesn't automatically convert string to jsonb.

ALTER TABLE invoice_read_models
    ALTER COLUMN lines TYPE text USING lines::text;
