Commit 6f917aa
committed
Add prefix support to renaming indices
Why:
* When using [triplex](https://github.com/ateliware/triplex) or similar
for multi-tenancy with query prefixes, renaming _tables_ within a
tenant is supported, but renaming an index was not. For example:
`rename table(:foo), to: table(:bar)` works
`rename index(:tablename, [:columns], name: "old_index_name"), to: "new_index_name"`
This change addresses the need by:
* Making indices similarly prefix-aware as tables.1 parent 2091490 commit 6f917aa
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1195 | 1195 | | |
1196 | 1196 | | |
1197 | 1197 | | |
1198 | | - | |
| 1198 | + | |
1199 | 1199 | | |
1200 | 1200 | | |
1201 | 1201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
824 | 841 | | |
825 | 842 | | |
826 | 843 | | |
| |||
0 commit comments