> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Migration & Modernization

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

## Overview

Devin can take away the pain of migrations, helping you move between different frameworks, languages, etc. Use [playbooks](/product-guides/creating-playbooks) to easily reuse prompts for large migrations.

## Use Cases

1. Language migrations (e.g., JavaScript to TypeScript)
2. Framework upgrades (e.g., React 17 to 18)
3. Database migrations
4. Dependency updates
5. Architecture modernization

## Example Prompts

<AccordionGroup>
  <Accordion title="Java 7 to Java 8 Upgrade" icon="circle-up">
    <PromptBlock>
      ```txt Java upgrade theme={null}
      ## Overview
      This playbook provides step-by-step instructions for upgrading a Java 7 project to Java 8.

      ## Procedure
      1. Verify if the provided project is indeed on Java 7
      2. Install Java 8 Development Kit (JDK)
      3. Update the project's build configuration
      4. Identify and replace deprecated Java 7 APIs
      5. Analyze the codebase for potential Java 8 enhancements
      6. Update unit tests
      7. Perform thorough testing
      8. Update documentation
      9. Build and verify the application

      ## Advice and Tips
      - Refer to the Java 8 documentation for detailed information on new features and APIs
      - For large-scale migrations, consider using the [API Reference](/api-reference/overview) to run multiple migration sessions in parallel
      ```
    </PromptBlock>
  </Accordion>

  <Accordion title="TypeScript Migration" icon="code">
    <PromptBlock>
      ```txt TypeScript migration theme={null}
      Please help migrate our JavaScript project to TypeScript. We need to:
      1. Add TypeScript configuration
      2. Convert .js files to .ts
      3. Add appropriate type definitions
      4. Update build process
      5. Ensure all tests still pass
      ```
    </PromptBlock>
  </Accordion>
</AccordionGroup>

## Example Session

### CSV to Notion Bulk Migration

In this example session, Devin helps a user migrate data from CSV files into Notion.

<iframe src="https://app.devin.ai/sessions/583736c03c174c92884aad7ada325fe2?embedded=true" width="100%" height="800px" />
