u
This commit is contained in:
@@ -8,10 +8,12 @@ export const {
|
||||
|
||||
export const CREATE = `
|
||||
INSERT INTO pic (
|
||||
w, h, size, hash, thumbw, thumbh, thumbhash, source
|
||||
w, h, size, hash, thumbw, thumbh, thumbhash,
|
||||
smallthumbw, smallthumbh, smallthumbbinary, source
|
||||
)
|
||||
VALUES (
|
||||
@w, @h, @size, @hash, @thumbw, @thumbh, @thumbhash, @source
|
||||
@w, @h, @size, @hash, @thumbw, @thumbh, @thumbhash,
|
||||
@smallthumbw, @smallthumbh, @smallthumbbinary, @source
|
||||
)
|
||||
RETURNING id
|
||||
`;
|
||||
|
||||
@@ -43,6 +43,9 @@ CREATE TABLE IF NOT EXISTS pic (
|
||||
thumbw INTEGER NOT NULL,
|
||||
thumbh INTEGER NOT NULL,
|
||||
thumbhash TEXT NOT NULL,
|
||||
smallthumbw INTEGER NOT NULL,
|
||||
smallthumbh INTEGER NOT NULL,
|
||||
smallthumbbinary BLOB NOT NULL,
|
||||
source TEXT NOT NULL
|
||||
);
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user