comraderat
5841c42033
Refactor to make sections work properly
2020-05-17 17:33:36 +02:00
comraderat
4ace56a661
Changed ip back to varchar for old db compatibility
...
Might change later, or not.
2020-05-17 16:32:22 +02:00
comraderat
9400833242
Implement almost every query
2020-05-14 17:22:36 +02:00
comraderat
d1b888c8ea
Implement more queries, change database slightly
2020-05-14 15:39:49 +02:00
comraderat
68059c28eb
Implement some more queries
2020-05-11 15:20:49 +02:00
Eggbertx
19466dd8eb
Properly log config issues if value isn't set and msg != ""
2020-05-09 09:26:54 -07:00
comraderat
7e4ea59dbe
Implement queries, remove unused fields in BanInfo
2020-05-08 13:06:34 +02:00
comraderat
cc45cf3858
Implement get all announcements and createboard
2020-05-06 19:25:49 +02:00
comraderat
2d45645fba
Fix spelling error in database
2020-05-06 19:17:58 +02:00
comraderat
1020e3ed24
Impl. GetAllSectionsOrCreateDefault & GetBoardUris
2020-05-04 14:21:53 +02:00
comraderat
ebde565479
Implement bans
2020-05-04 14:16:51 +02:00
comraderat
89e09738e5
Implement fileban and some utility functions
2020-05-04 13:57:00 +02:00
comraderat
af146ffeed
Implement sql
2020-05-04 13:46:32 +02:00
comraderat
2bf2d4aa35
Implement Staff sql funcs
2020-05-04 13:46:13 +02:00
comraderat
704d9055b0
Changed SetFormattedInDatabase to send one by one
...
Manually manages stmt object to stop re-formatting
constantly.
2020-05-03 13:37:33 +02:00
comraderat
6eff4c2b97
Implement GetStaffByName
2020-05-03 13:37:33 +02:00
comraderat
5b2e6800a1
Implemented GetStaffName & GetStaffBySession
2020-05-03 13:37:33 +02:00
comraderat
bae28256e0
Removed non-functional staff boards field
2020-05-03 13:37:33 +02:00
comraderat
631648222c
Implemented GetReplyFileCount
2020-05-03 13:37:33 +02:00
comraderat
36c073e037
Add InterfaceSlice method, fix error
...
Implemented GetReplyCount, added InterfaceSlice method for easy use of
QuerySQL, fixed and updates GetSpecificTopPost
2020-05-03 13:37:33 +02:00
comraderat
0d8cbff20d
Get and set methods for messages implemented
2020-05-03 13:37:33 +02:00
comraderat
5a5f60f3bd
vscode: Add snippet file for query & scan into slice
2020-05-03 11:46:20 +02:00
comraderat
969dca3e98
Replace notimplementen static value with new call
...
To ensure correct handling of stack trace
2020-05-03 11:18:12 +02:00
comraderat
647df66989
Add deprecation notice to Post and RecentPost
2020-05-02 20:11:25 +02:00
comraderat
4f925c3622
Extract & implement post retrieval queries
...
Removed unused field in Post table
2020-05-02 20:08:17 +02:00
comraderat
0c10cc31ad
Update dummy data
2020-05-02 17:34:50 +02:00
comraderat
4406da2ec9
Fixed vscode launch.json
2020-05-01 21:16:29 +02:00
comraderat
58fd83bad1
Add deprecation tags and remove unused funcs
...
Add deprecation annotation for functions that are not idiomatic to the
new database logic. These functions (and mostly the code that uses them)
will have to be replaced over time to use the new features of the design.
2020-05-01 21:10:59 +02:00
Eggbertx
d1292bd9fe
refactor/reorganize gochan's source code into subpackages
...
Also use Go version 1.11 in vagrant for module support
2020-04-29 17:44:29 -07:00
comraderat
76f2934f14
Finish refactoring utils
2020-04-20 18:08:48 +02:00
comraderat
38194cfa24
Finish refactoring types
2020-04-20 17:42:48 +02:00
comraderat
2513171132
Finish refactoring server.go
2020-04-19 22:26:35 +02:00
comraderat
598d07052d
Make FK to post in ban nullable
2020-04-19 21:50:43 +02:00
comraderat
a94d2129d9
Finish refactor posting.go
2020-04-19 21:48:05 +02:00
comraderat
6163077e9c
Finish Refactoring manage.go
2020-04-19 21:06:57 +02:00
comraderat
16e31891f3
Refactored some more
2020-04-16 17:15:18 +02:00
comraderat
58a0d5364e
Add is_thread_ban to database
2020-04-14 18:48:24 +02:00
comraderat
2b834d3a01
Refactored some queries out of manage.go
2020-04-13 20:56:17 +02:00
comraderat
f7f0927ba2
Finished moving all SQL out of building.go
2020-04-13 17:53:47 +02:00
comraderat
c45e6f6350
Move recent post get to sql query file, fix errors
2020-04-13 17:37:22 +02:00
comraderat
7e3465ef2f
Add file width and height, fix erd
2020-04-13 16:39:28 +02:00
comraderat
fbc3136ded
Add notes for database migration
2020-04-13 16:34:38 +02:00
comraderat
8ea3bea7ed
Refactored getPostArr into seperate functions
...
These functions dont expose/require knowledge of implementation details
(and as such obey the rules of "good code")
They are also easier to refactor later on.
2020-04-13 16:31:36 +02:00
comraderat
76e6a3e37f
Fix order error
2020-04-13 15:01:13 +02:00
comraderat
89e299da78
Refactored first sql command.
...
kill me
2020-04-12 21:31:40 +02:00
comraderat
a51c8e049c
Add dbprefix
2020-04-12 16:15:11 +02:00
comraderat
7665b78aff
Move build sql to devtools, fix capitalisation
2020-04-12 16:10:30 +02:00
comraderat
82a902ebba
Fixed ERD
...
Added "expires at" to ip ban audit.
2020-04-11 18:04:19 +02:00
comraderat
6351fe1bd8
Made master sql template + builder
...
SQL all follows one master sql files with the use of queries.
2020-04-11 18:02:55 +02:00
comraderat
2be7e772d5
Added is_top_post to posts & add indexes
...
Added is_top_post to posts because you cannot have mutually dependent
entries (original plan was to have thread point to its own top post to
avoid costly constant sort operations).
Indexed posts.is_top_post and threads.is_deleted
2020-04-10 16:54:18 +02:00