curl --request POST \
--url https://api.example.com/v1/instances/{instance}/databases/{database}:diffSchema \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"schema": "<string>",
"changelog": "<string>"
}
'{
"diff": "<string>"
}Compares and generates migration statements between two schemas. Permissions required: bb.databases.get
curl --request POST \
--url https://api.example.com/v1/instances/{instance}/databases/{database}:diffSchema \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"schema": "<string>",
"changelog": "<string>"
}
'{
"diff": "<string>"
}The name of the database or changelog. Format: database: instances/{instance}/databases/{database} changelog: instances/{instance}/databases/{database}/changelogs/{changelog}
The target schema.
The resource name of the changelog Format: instances/{instance}/databases/{database}/changelogs/{changelog}
OK
Was this page helpful?