Commit 79290bd
authored
usage: use existing cloud_usage index procedures to widen the key
Use the pre-existing cloud_usage procedures instead of the two added in this PR. schema-41600to41610.sql:72 created this same key with IDEMPOTENT_ADD_UNIQUE_INDEX:
CALL `cloud_usage`.`IDEMPOTENT_ADD_UNIQUE_INDEX`( 'cloud_usage.usage_volume', 'id', '(volume_id ASC, created ASC)');
so widening it the same way keeps the table's schema history consistent.
Note the two procedures take their arguments in opposite orders:
IDEMPOTENT_DROP_INDEX is (index_name, table_name), while
IDEMPOTENT_ADD_UNIQUE_INDEX is (table_name, index_name, definition).1 parent e5dd472 commit 79290bd
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | | - | |
652 | | - | |
| 652 | + | |
| 653 | + | |
0 commit comments