fix(db): Make playqueue position field an integer

This commit is contained in:
Kendall Garner 2025-08-23 07:25:37 -07:00
parent 871ee730cd
commit 7f6f294235
No known key found for this signature in database
GPG Key ID: 9355F387FE765C94

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