1
0
Commit Graph

20 Commits

Author SHA1 Message Date
5a72fbecb4
Found why Edit*() methods didn't work, for UPDATE query Exec() method must be used instead of QueryRow(). 2023-05-09 23:31:39 +04:00
cb623e8087
Fixed TestSqliteEditEntry test. 2023-05-09 23:30:18 +04:00
761b7626c9
Date now stored as Unix time (int64). No NULL is being returned so no such check is needed. 2023-05-09 21:32:01 +04:00
6cfe0a7d8b
Return both website and hide_website fields (for use on an admin page). Using COALESCE to return 0 and an empty string if there is no reply to not deal with NULL. 2023-05-09 21:30:17 +04:00
613f0c1616
PRIMARY KEY moved out on a separate line. Use INTEGER (Unix time) for created dates to save space. 2023-05-09 21:27:52 +04:00
1c424e1ec9
Removed unnecessary braces around CASE ... END statement. 2023-05-06 22:22:40 +04:00
b9963c9521
Do not change created field in replyUpdate.sql. 2023-05-06 22:22:08 +04:00
9d7088f2cd
Changed formatting for entryCount.sql. 2023-05-06 22:21:47 +04:00
f5631bf3d0
Modified tests accordingly to all changes. 2023-05-06 22:21:23 +04:00
2cc91b351c
Don't modify reply's date when edit. 2023-05-06 22:20:58 +04:00
9347a16fca
Do not return number of affected rows in Delete*() methods. 2023-05-06 22:20:11 +04:00
bea8df31cb
Return Guestbook interface instead of SQLiteDatabase instance. 2023-05-06 22:19:04 +04:00
f602dddff3
Replaced Update*() with Edit*(). 2023-05-06 22:18:20 +04:00
723d2d4772
Make DeleteReply() return count of affected rows. 2023-03-23 17:03:23 +04:00
0bcf1bfce3
Changed arav.top to arav.su. 2023-03-11 22:21:33 +04:00
c79ab5cf60
Date cannot be scanned directly to time.Time type, so we need to read a date to a string first. 2023-02-05 20:03:36 +04:00
837fec8545
Removed unneded CURRENT_TIMESTAMP defaults. 2023-02-05 20:02:22 +04:00
081d6147b8
Removed RETURNING statements. 2023-02-05 20:01:52 +04:00
309044f651
Dates are now of type time.Time. 2023-02-05 16:28:55 +04:00
729e58fdca
Files are moved out of pkg directory. 2023-01-16 04:25:04 +04:00