mirror of
https://github.com/zvx-echo6/central.git
synced 2026-08-26 17:31:39 +00:00
v0.14.5: migration 042 re-asserts central ownership of config.monitoring_areas (#111)
Append idempotent ALTER ... OWNER TO central for the table + SERIAL sequence so fresh installs are self-healing; prod already patched inline during v0.14.0. Adds whitespace-insensitive static-check assertions. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c1c3d2576d
commit
3361abaa92
2 changed files with 17 additions and 0 deletions
|
|
@ -38,3 +38,10 @@ def test_does_not_drop_old_columns_in_v0_14_0():
|
|||
upper = _NORM.upper()
|
||||
assert "DROP COLUMN" not in upper
|
||||
assert "DROP TABLE" not in upper
|
||||
|
||||
|
||||
def test_grants_table_and_sequence_ownership_to_central():
|
||||
# v0.14.5: applied-as-postgres left the table/sequence postgres-owned; the
|
||||
# file now re-asserts central ownership so fresh installs are self-healing.
|
||||
assert "ALTER TABLE config.monitoring_areas OWNER TO central" in _NORM
|
||||
assert "ALTER SEQUENCE config.monitoring_areas_id_seq OWNER TO central" in _NORM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue