Commit e906da7
authored
Strip schema from index names in internal schema representation (#278)
Remove the schema component from index names in the internal schema
representation.
A `pgroll` migration is always run in the context of a a specific schema
so the extra qualification is redundant.
Removing the schema component from the index names makes it easy to
identify duplicated indexes by name when temporary columns and
associated attributes are renamed on migration completion.
Tests for this change are already in place (#276, #277). As of this PR,
migration tests run in a non-public schema will pass:
```bash
PGROLL_TEST_SCHEMA=foo go test ./...
```
Part of #2731 parent 5686ddc commit e906da7
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments