This website requires JavaScript.
Explore
Help
Sign In
xataio
/
pgroll
Watch
1
Star
1
Fork
0
You've already forked pgroll
mirror of
https://github.com/xataio/pgroll.git
synced
2024-08-16 01:00:47 +03:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
aa0c6a42e5
pgroll
/
examples
/
11_drop_index.json
11 lines
129 B
JSON
Raw
Normal View
History
Unescape
Escape
Implement 'drop index' migrations (#51) Add support for **drop index** migrations. A drop index migration looks like this: ```json { "name": "11_drop_index", "operations": [ { "drop_index": { "name": "_pgroll_idx_users_name" } } ] } ``` * `Start` is a no-op. * On `Complete` the index is removed from the underlying table. * `Rollback` is a no-op.
2023-08-18 08:38:48 +03:00
{
"name"
:
"11_drop_index"
,
"operations"
:
[
{
"drop_index"
:
{
Make index name mandatory on create index operation (#59) 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.
2023-08-18 10:55:25 +03:00
"name"
:
"idx_fruits_name"
Implement 'drop index' migrations (#51) Add support for **drop index** migrations. A drop index migration looks like this: ```json { "name": "11_drop_index", "operations": [ { "drop_index": { "name": "_pgroll_idx_users_name" } } ] } ``` * `Start` is a no-op. * On `Complete` the index is removed from the underlying table. * `Rollback` is a no-op.
2023-08-18 08:38:48 +03:00
}
}
]
}
Reference in New Issue
Copy Permalink