Styled the post list and added updating of posts
This commit is contained in:
parent
e77cac2fd5
commit
aef3bb6a1e
31 changed files with 1230 additions and 118 deletions
|
|
@ -1,6 +1,9 @@
|
|||
-- name: SelectPostsOfSite :many
|
||||
SELECT * FROM posts WHERE site_id = ? ORDER BY created_at DESC LIMIT 10;
|
||||
|
||||
-- name: SelectPost :one
|
||||
SELECT * FROM posts WHERE id = ? LIMIT 1;
|
||||
|
||||
-- name: SelectPostByGUID :one
|
||||
SELECT * FROM posts WHERE guid = ? LIMIT 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ SELECT * FROM publish_targets WHERE site_id = ?;
|
|||
INSERT INTO publish_targets (
|
||||
site_id,
|
||||
target_type,
|
||||
enabled,
|
||||
base_url,
|
||||
target_ref,
|
||||
target_key
|
||||
) VALUES (?, ?, ?, ?, ?)
|
||||
) VALUES (?, ?, ?, ?, ?, ?)
|
||||
RETURNING id;
|
||||
Loading…
Add table
Add a link
Reference in a new issue