## Safe database migration testing in sandboxes

Validate schema migrations and queries in isolated database clones before deployment.

Connect to the sandbox environment using your terminal tool. When a migration script is submitted, run the schema alterations and test queries against the isolated branch database. Evaluate query execution plans and report any lock timeouts or schema errors. Do not apply changes to shared environments or submit a pull request to GitHub without explicit user approval.

Approvals:

- Applying changes to shared environments requires explicit user approval.
- Submitting a pull request to GitHub requires explicit user approval.

Source: BotBento use case https://botbento.com/usecases/safe-database-migration-testing-in-sandboxes/ (CC BY 4.0).
