pgroll/pkg/state
Andrew Farries e906da784f
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 #273
2024-02-07 12:08:25 +00:00
..
errors.go License check in github actions (#123) 2023-09-22 10:31:49 +00:00
state_test.go Update state command to avoid returning nulls (#274) 2024-02-05 16:35:22 +01:00
state.go Strip schema from index names in internal schema representation (#278) 2024-02-07 12:08:25 +00:00
status.go Move logic for the status command into the state and migrations packages (#205) 2023-11-22 12:36:54 +00:00