# SQL Migrations

Database changes can be automatically deployed during server startup or on demand using CloudIO CLI.

SQL scripts must be named in `io_YYYYMMDDHHmmss_some_description.sql` format and placed under the respective application migration folder. Any metadata scripts that create or alter the metadata tables in cloudio schema must be placed under `cloudio` folder.

{% hint style="warning" %}
Note: File name must be unique. Once migrated any further changes to the script will be ignored.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://next-docs.cloudio.io/app-deployment/sql-migrations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
