refactor: Formatting

This commit is contained in:
Ahmad Ansori Palembani 2024-06-04 07:21:17 +07:00
parent e4f59771d9
commit 3132969192
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 10 additions and 8 deletions

View file

@ -22,8 +22,12 @@ CREATE TABLE manga_sync(
ON DELETE CASCADE
);
INSERT INTO manga_sync(_id, manga_id, sync_id, remote_id, library_id, title, last_chapter_read, total_chapters, status, score, remote_url, start_date, finish_date)
SELECT _id, manga_id, sync_id, remote_id, library_id, title, last_chapter_read, total_chapters, status, score, remote_url, start_date, finish_date
INSERT INTO manga_sync
(_id, manga_id, sync_id, remote_id, library_id, title, last_chapter_read, total_chapters, status, score, remote_url,
start_date, finish_date)
SELECT
_id, manga_id, sync_id, remote_id, library_id, title, last_chapter_read, total_chapters, status, score, remote_url,
start_date, finish_date
FROM manga_sync_tmp;
DROP TABLE manga_sync_tmp;

View file

@ -38,13 +38,11 @@ CREATE TABLE mangas(
update_strategy INTEGER NOT NULL DEFAULT 0
);
INSERT INTO mangas
(_id, source, url, artist, author, description, genre, title, status, thumbnail_url,
favorite, last_update, initialized, viewer, hide_title, chapter_flags, date_added, filtered_scanlators,
update_strategy)
(_id, source, url, artist, author, description, genre, title, status, thumbnail_url, favorite, last_update,
initialized, viewer, hide_title, chapter_flags, date_added, filtered_scanlators, update_strategy)
SELECT
_id, source, url, artist, author, description, genre, title, status, thumbnail_url,
favorite, last_update, initialized, viewer, hideTitle, chapter_flags, date_added, filtered_scanlators,
update_strategy
_id, source, url, artist, author, description, genre, title, status, thumbnail_url, favorite, last_update,
initialized, viewer, hideTitle, chapter_flags, date_added, filtered_scanlators, update_strategy
FROM mangas_tmp;
DROP TABLE mangas_tmp;