mirror of
https://github.com/xataio/pgroll.git
synced 2024-09-11 13:55:28 +03:00
Make specifying a name mandatory on the **Create index** operation. In order to work with indexes in subsequent migrations (eg deleting the index), the user will have to know the name of the migration. If the migration name is auto-generated and we ever change how names are generated, then we risk breaking a user's migrations if they have migrations that refer to these generated names.
15 lines
209 B
JSON
15 lines
209 B
JSON
{
|
|
"name": "10_create_index",
|
|
"operations": [
|
|
{
|
|
"create_index": {
|
|
"name": "idx_fruits_name",
|
|
"table": "fruits",
|
|
"columns": [
|
|
"name"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|