feat: add unified storage data migration step for playlists (#114582)

* fix: add type

* feat: register step

* feat: add playlist support

* test: add test case

* fix: gen mock

* fix: go gen

* fix: lint

* fix: lint

* fix: tests

* fix: add resource

* fix: readd

* fix: address comments

* fix: independent playlist query for migrations

* fix: remove lock logic for sqlite

* fix: handle creation and update datetimes

* fix: query templating

* fix: simply resources and address comments
This commit is contained in:
Mustafa Sencer Özcan
2025-12-04 15:15:00 +00:00
committed by GitHub
parent e5259c2ad4
commit 4c5d9cb95f
16 changed files with 641 additions and 105 deletions
@@ -0,0 +1,18 @@
SELECT
p.id,
p.org_id,
p.uid,
p.name,
p.interval,
p.created_at,
p.updated_at,
pi.type as item_type,
pi.value as item_value
FROM
{{ .Ident .PlaylistTable }} as p
LEFT OUTER JOIN {{ .Ident .PlaylistItemTable }} as pi ON p.id = pi.playlist_id
WHERE
p.org_id = {{ .Arg .Query.OrgID }}
ORDER BY
p.id ASC,
pi.{{ .Ident "order" }} ASC