Start here
The safe first move
Use a codemod for direct, syntax-aware changes. Keep transaction boundaries, alias-heavy loaders, and broad query redesign in manual review.
Stop before automation when: Business logic hidden in query construction. Runtime-only behavior changes.
Target shape
hybrid:
automate direct syntax cleanup
report ambiguous files
validate before claiming success