DO $$
  BEGIN
    ALTER TYPE stockcardlineitemtype RENAME TO stockcardlineitemtype_old;
    CREATE TYPE stockcardlineitemtype AS ENUM('DEBIT', 'CREDIT', 'ADJUSTMENT');
    ALTER TABLE stock_card_line_items
      ALTER COLUMN type TYPE stockcardlineitemtype USING type::text::stockcardlineitemtype;
    DROP TYPE stockcardlineitemtype_old;
  END;
$$
Fix stock card line item type enum entries
Fix stock card line item type enum entries

Fix entries to use debit and credit, vs. issue and receipt. Issue and receipt are more to do with transfers. Also capitalize enum entries to match Java constants code style.
