1
0
Fork 0

Added new sql statements. In new reply entry_id and created swapped places.

This commit is contained in:
Alexander Andreev 2022-10-21 04:22:07 +04:00
parent 49a92151e4
commit 005330ff2c
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
4 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,2 @@
SELECT COUNT(`entry_id`) AS `total`
FROM `entry`;

View File

@ -0,0 +1,7 @@
UPDATE OR REPLACE `entry`
SET
`name` = ?,
`message` = ?,
`website` = ?,
`hide_website` = ?,
WHERE `entry_id` = ?;

View File

@ -1,4 +1,4 @@
INSERT INTO `reply`
(`created`, `entry_id`, `message`)
(`entry_id`, `created`, `message`)
VALUES
(?, ?, ?);

View File

@ -0,0 +1,5 @@
UPDATE OR REPLACE `reply`
SET
`created` = ?,
`message` = ?,
WHERE `entry_id` = ?;