Files
navidrome/db/migrations/20250823142158_make_playqueue_position_int.sql
2025-11-06 14:41:09 -05:00

10 lines
302 B
SQL

-- +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