mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
refactor: Formatting
This commit is contained in:
parent
e4f59771d9
commit
3132969192
2 changed files with 10 additions and 8 deletions
|
@ -22,8 +22,12 @@ CREATE TABLE manga_sync(
|
||||||
ON DELETE CASCADE
|
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)
|
INSERT INTO manga_sync
|
||||||
SELECT _id, manga_id, sync_id, remote_id, library_id, title, last_chapter_read, total_chapters, status, score, remote_url, start_date, finish_date
|
(_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;
|
FROM manga_sync_tmp;
|
||||||
|
|
||||||
DROP TABLE manga_sync_tmp;
|
DROP TABLE manga_sync_tmp;
|
||||||
|
|
|
@ -38,13 +38,11 @@ CREATE TABLE mangas(
|
||||||
update_strategy INTEGER NOT NULL DEFAULT 0
|
update_strategy INTEGER NOT NULL DEFAULT 0
|
||||||
);
|
);
|
||||||
INSERT INTO mangas
|
INSERT INTO mangas
|
||||||
(_id, source, url, artist, author, description, genre, title, status, thumbnail_url,
|
(_id, source, url, artist, author, description, genre, title, status, thumbnail_url, favorite, last_update,
|
||||||
favorite, last_update, initialized, viewer, hide_title, chapter_flags, date_added, filtered_scanlators,
|
initialized, viewer, hide_title, chapter_flags, date_added, filtered_scanlators, update_strategy)
|
||||||
update_strategy)
|
|
||||||
SELECT
|
SELECT
|
||||||
_id, source, url, artist, author, description, genre, title, status, thumbnail_url,
|
_id, source, url, artist, author, description, genre, title, status, thumbnail_url, favorite, last_update,
|
||||||
favorite, last_update, initialized, viewer, hideTitle, chapter_flags, date_added, filtered_scanlators,
|
initialized, viewer, hideTitle, chapter_flags, date_added, filtered_scanlators, update_strategy
|
||||||
update_strategy
|
|
||||||
FROM mangas_tmp;
|
FROM mangas_tmp;
|
||||||
|
|
||||||
DROP TABLE mangas_tmp;
|
DROP TABLE mangas_tmp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue