Eggbertx
3fa042167e
Add sqlmock driver and schema initialization
2022-08-28 19:26:03 -07:00
Eggbertx
c82759011e
change board_dir column to board_dirs
2022-01-30 16:21:06 -08:00
comraderat
773112d1c6
Remove wordfilter migration
...
Wordfilter is unused in current gochan codebase,
Remove migrating sql to make it simpler
Make staff reference in wordfilter non-null again
(Making it nullable was a compromise for migrating)
2020-07-08 19:44:17 +02:00
comraderat
3e402f6fc9
Add cascades, fix mysql error
2020-07-05 16:08:42 +02:00
comraderat
46735c64d6
Changed versioning table
...
This allows us to more easily make a plugin system
with their own versions without breaking changes
2020-07-04 23:56:46 +02:00
comraderat
650387a0d5
Made wordfilter staff id nullable, fixed mistake
...
Old schema doesnt have a staff noted with their wordfilter.
It is possible to make it not null in later version, but
this will do for now.
2020-06-29 23:14:53 +02:00
comraderat
d9316529fe
Remove not null constraint from board_id on ip bans
2020-06-19 17:16:30 +02:00
comraderat
3e564bcc4a
Finish thread/post/file migration.
2020-06-11 20:11:46 +02:00
comraderat
ee1a6e1b8d
Named all constraints that need explicit names
...
This way they can be dropped in later versions.
2020-06-11 14:51:37 +02:00
comraderat
f0c1fbba94
Remove unique constraint from section position
2020-05-30 22:40:12 +02:00
comraderat
42e4f4717b
Move adding version to last sql new database statement
2020-05-27 21:42:09 +02:00
comraderat
2039958d1e
Remove unique on navbar position for usability.
...
Actually order by navbar position. Then order by name.
2020-05-27 21:18:19 +02:00
comraderat
2e00b11434
Fix some errors
2020-05-23 19:40:29 +02:00
comraderat
1b3314499d
Change uri to varchar
2020-05-17 18:22: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
d1b888c8ea
Implement more queries, change database slightly
2020-05-14 15:39:49 +02:00
comraderat
2d45645fba
Fix spelling error in database
2020-05-06 19:17:58 +02:00
comraderat
2bf2d4aa35
Implement Staff sql funcs
2020-05-04 13:46:13 +02:00
comraderat
598d07052d
Make FK to post in ban nullable
2020-04-19 21:50:43 +02:00
comraderat
58a0d5364e
Add is_thread_ban to database
2020-04-14 18:48:24 +02:00
comraderat
7e3465ef2f
Add file width and height, fix erd
2020-04-13 16:39:28 +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
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
comraderat
5b58adf8c6
Changed postgresql population script to new database
2020-04-10 16:15:07 +02:00
comraderat
6526a1ae06
Fixed postgresql database initialise bug
2020-04-02 00:42:16 +02:00
Eggbertx
3c8a01dcea
Stability fixes, mostly SQL related
...
Generate config.RandomSeed if one isn't provided in gochan.json
Don't automatically fail if a board's path already exists, unless it isn't a directory
Clean up SQL query strings with DBPREFIX replacer
Separate the gochan.service file into separate files for each SQL DB type
Enable the gochan.service in Vagrant and fix issue with it failing on restart
fixes #19
2020-03-07 17:20:35 -08:00
Eggbertx
317f9d4ba0
Add support for PostgreSQL and SQLite
2019-06-13 16:36:02 -07:00