BEGIN; ALTER TABLE payments ALTER COLUMN bank_id DROP NOT NULL; COMMIT;