fix(db): make playqueue position field an integer (#4481)

This commit is contained in:
Kendall Garner
2025-11-06 19:41:09 +00:00
committed by GitHub
parent 290a9fdeaa
commit a128b3cf98

View File

@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE playqueue ADD COLUMN position_int integer;
UPDATE playqueue SET position_int = CAST(position as INTEGER) ;
ALTER TABLE playqueue DROP COLUMN position;
ALTER TABLE playqueue RENAME COLUMN position_int TO position;
-- +goose StatementEnd
-- +goose Down