# Migration

{% openapi src="<https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json>" path="/api/v3/migration" method="get" %}
[UshahidiV3.json](https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json)
{% endopenapi %}

{% openapi src="<https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json>" path="/api/v3/migration/status" method="get" %}
[UshahidiV3.json](https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json)
{% endopenapi %}

## migration rollback

<mark style="color:green;">`POST`</mark> `https://ushahididocs.api.ushahidi.io/api/v3/migration/rollback`

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "results": [
        "Phinx by Rob Morgan - https://phinx.org. 0.8.1\r",
        "\r",
        "using config file .C:\\xampp\\htdocs\\platform\\phinx.php\r",
        "using config parser php\r",
        "using migration paths \r",
        " - C:\\xampp\\htdocs\\platform\\migrations\r",
        "using seed paths \r",
        " - C:\\xampp\\htdocs\\platform\\seeds\r",
        "using environment ushahidi\r",
        "using adapter mysql\r",
        "using database platform_3\r",
        "ordering by creation time\r",
        "\r",
        " == 20211215110945 AddMetadataToPostDatetimeTable: reverting\r",
        " == 20211215110945 AddMetadataToPostDatetimeTable: reverted 0.0785s\r",
        "\r",
        "All Done. Took 0.0994s\r"
    ]
}
```

{% endtab %}
{% endtabs %}

{% openapi src="<https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json>" path="/api/v3/migration/migrate" method="post" %}
[UshahidiV3.json](https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json)
{% endopenapi %}
