mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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:
parent
402b431c80
commit
b988ea8788
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue