loopdb: lowercase protocol_version column in migration 14

Migration 000014_reservation_protocol_version used 'protocol_Version'
(capital V) in the ADD COLUMN / DROP COLUMN statements. Postgres folds
unquoted identifiers to lowercase and SQLite is case-insensitive on
identifier comparison, so the running schema column is
'protocol_version' either way -- but the sqlc-generated Go
(loopdb/sqlc/reservations.sql.go) also uses the lowercase form, so the
file as written was both unusual and inconsistent with its own generated
SQL.

Use 'protocol_version' everywhere. No data migration is required; the
column on disk is unchanged. Pure cosmetic / portability fix.
This commit is contained in:
Slyghtning 2026-05-11 16:14:37 +02:00
parent 402b431c80
commit b988ea8788
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
-- protocol_version is used to determine the version of the reservation protocol
-- that was used to create the reservation.
ALTER TABLE reservations DROP COLUMN protocol_Version;
ALTER TABLE reservations DROP COLUMN protocol_version;

View file

@ -1,3 +1,3 @@
-- protocol_version is used to determine the version of the reservation protocol
-- that was used to create the reservation.
ALTER TABLE reservations ADD COLUMN protocol_Version INTEGER NOT NULL DEFAULT 0;
ALTER TABLE reservations ADD COLUMN protocol_version INTEGER NOT NULL DEFAULT 0;