mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-03 14:32:40 +00:00
Use WITHOUT ROWID tables when useful
Slight optimization for SQLite for the 'settings' and 'users' tables
This commit is contained in:
parent
f0adf08b1e
commit
68f18e463c
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ create table newssync_settings(
|
||||||
type varchar(255) not null check(
|
type varchar(255) not null check(
|
||||||
type in('int','numeric','text','timestamp','date','time','bool','null','json')
|
type in('int','numeric','text','timestamp','date','time','bool','null','json')
|
||||||
) default 'text' -- the deserialized type of the value
|
) default 'text' -- the deserialized type of the value
|
||||||
);
|
) without rowid;
|
||||||
|
|
||||||
-- users
|
-- users
|
||||||
create table newssync_users(
|
create table newssync_users(
|
||||||
|
@ -16,7 +16,7 @@ create table newssync_users(
|
||||||
avatar_type TEXT, -- internal avatar image's MIME content type
|
avatar_type TEXT, -- internal avatar image's MIME content type
|
||||||
avatar_data BLOB, -- internal avatar image's binary data
|
avatar_data BLOB, -- internal avatar image's binary data
|
||||||
rights integer not null default 0 -- any administrative rights the user may have
|
rights integer not null default 0 -- any administrative rights the user may have
|
||||||
);
|
) without rowid;
|
||||||
|
|
||||||
-- newsfeeds, deduplicated
|
-- newsfeeds, deduplicated
|
||||||
create table newssync_feeds(
|
create table newssync_feeds(
|
||||||
|
|
Loading…
Reference in a new issue