Rename watched_status DB table to watched_media
This commit is contained in:
parent
3d57f88232
commit
7339ad511e
1 changed files with 4 additions and 4 deletions
|
|
@ -31,9 +31,9 @@ impl SqliteManager {
|
|||
.prepare(
|
||||
"
|
||||
select films.uuid, films.name, films.original_name, films.release_date, films.runtime_minutes,
|
||||
coalesce(watched_status.watched, 0) as watched
|
||||
from films left join watched_status
|
||||
on films.uuid is watched_status.media_uuid
|
||||
coalesce(watched_media.watched, 0) as watched
|
||||
from films left join watched_media
|
||||
on films.uuid is watched_media.media_uuid
|
||||
",
|
||||
)?
|
||||
.query(())?
|
||||
|
|
@ -79,7 +79,7 @@ impl SqliteManager {
|
|||
move |connection| {
|
||||
connection.execute(
|
||||
"
|
||||
insert into watched_status (media_uuid, watched)
|
||||
insert into watched_media (media_uuid, watched)
|
||||
values (:uuid, :watched)
|
||||
on conflict (media_uuid) do
|
||||
update set watched = :watched
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue