Files
loki/scripts
CatoandClaude 47d6ad4ebb fix(schema): the destructive guard reads statements, not comments (#1776)
No loki deploy has shipped since 2026-11-26: apply-schema.sh refused
0140_pictures_in_the_bucket.sql as destructive. Its SQL is additive (two
ADD COLUMNs and a DROP NOT NULL); the hit was its own header comment,
"apply-schema.sh refuses DROP COLUMN, on purpose". strip_bodies now blanks
`--` comments as it already blanks dollar-quoted bodies, line numbers kept.
A statement before a trailing comment still blocks.

test-apply-schema.sh: 55 passed (2 new). 0138-0140 pass the guard; the old
genuinely destructive migrations (0002, 0006, ...) still hit.


Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 11:09:46 +01:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00