POST https://ushahididocs.api.ushahidi.io/api/v3/migration/rollback
POST
https://ushahididocs.api.ushahidi.io/api/v3/migration/rollback
{ "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" ] }
OK
const response = await fetch('https://ushahididocs.api.ushahidi.io/api/v3/migration', { method: 'GET', headers: {}, }); const data = await response.json();
{ "results": [ "text" ] }
const response = await fetch('https://ushahididocs.api.ushahidi.io/api/v3/migration/status', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('https://ushahididocs.api.ushahidi.io/api/v3/migration/migrate', { method: 'POST', headers: {}, }); const data = await response.json();