mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
refactor: Rename column to use snake_case for consistency, also added ext repos table for later
This commit is contained in:
parent
e15bc047fe
commit
d769195eae
5 changed files with 20 additions and 3 deletions
|
@ -42,7 +42,7 @@ object MangaTable {
|
|||
|
||||
const val COL_CATEGORY = "category"
|
||||
|
||||
const val COL_HIDE_TITLE = "hideTitle"
|
||||
const val COL_HIDE_TITLE = "hide_title"
|
||||
|
||||
const val COL_DATE_ADDED = "date_added"
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE extension_repos (
|
||||
base_url TEXT NOT NULL PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
short_name TEXT,
|
||||
website TEXT NOT NULL,
|
||||
signing_key_fingerprint TEXT UNIQUE NOT NULL
|
||||
);
|
|
@ -16,7 +16,7 @@ CREATE TABLE mangas(
|
|||
last_update INTEGER AS Long,
|
||||
initialized INTEGER AS Boolean NOT NULL,
|
||||
viewer INTEGER NOT NULL,
|
||||
hideTitle INTEGER NOT NULL,
|
||||
hide_title INTEGER NOT NULL,
|
||||
chapter_flags INTEGER NOT NULL,
|
||||
date_added INTEGER AS Long,
|
||||
filtered_scanlators TEXT,
|
||||
|
|
|
@ -23,7 +23,7 @@ CREATE TABLE manga_sync(
|
|||
);
|
||||
|
||||
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
|
||||
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;
|
||||
|
|
10
app/src/main/sqldelight/tachiyomi/migrations/17.sqm
Normal file
10
app/src/main/sqldelight/tachiyomi/migrations/17.sqm
Normal file
|
@ -0,0 +1,10 @@
|
|||
CREATE TABLE extension_repos (
|
||||
base_url TEXT NOT NULL PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
short_name TEXT,
|
||||
website TEXT NOT NULL,
|
||||
signing_key_fingerprint TEXT UNIQUE NOT NULL
|
||||
);
|
||||
|
||||
ALTER TABLE mangas
|
||||
RENAME COLUMN hideTitle TO hide_title;
|
Loading…
Add table
Add a link
Reference in a new issue