mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor: database column names (#23356)
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
-- AlbumUserRepository.create
|
||||
insert into
|
||||
"album_user" ("usersId", "albumsId")
|
||||
"album_user" ("userId", "albumId")
|
||||
values
|
||||
($1, $2)
|
||||
returning
|
||||
"usersId",
|
||||
"albumsId",
|
||||
"userId",
|
||||
"albumId",
|
||||
"role"
|
||||
|
||||
-- AlbumUserRepository.update
|
||||
@@ -15,13 +15,13 @@ update "album_user"
|
||||
set
|
||||
"role" = $1
|
||||
where
|
||||
"usersId" = $2
|
||||
and "albumsId" = $3
|
||||
"userId" = $2
|
||||
and "albumId" = $3
|
||||
returning
|
||||
*
|
||||
|
||||
-- AlbumUserRepository.delete
|
||||
delete from "album_user"
|
||||
where
|
||||
"usersId" = $1
|
||||
and "albumsId" = $2
|
||||
"userId" = $1
|
||||
and "albumId" = $2
|
||||
|
||||
Reference in New Issue
Block a user