Eggbertx
307a626063
Make post reporting from JS actually work
2022-04-06 00:23:04 -07:00
Eggbertx
1a104391ec
Redirect to referer on report submission
2022-04-05 21:51:08 -07:00
Eggbertx
1848e2f073
Add function for handling reports
...
(still needs a lot of work)
2022-03-20 23:01:18 -07:00
Eggbertx
42a80fec64
Start using transactions in gochan-migrate
2022-03-06 10:28:31 -08:00
Eggbertx
a2d6d88d08
Get rid of outdated/no longer used migration stuff
2022-03-01 17:34:40 -08:00
Eggbertx
d0a6341bf6
Add support for sql.Tx transactions to gcsql
2022-02-24 17:26:29 -08:00
Eggbertx
8840693a8b
Add function to check if Pre2021 migration is already complete
...
(still need to do kusaba x and tinyboard)
2022-02-19 14:55:45 -08:00
Eggbertx
69fb7c9d31
Move post migration methods a separate file
2022-02-17 22:45:47 -08:00
Eggbertx
74b5c38fe6
Don't automatically move the files
...
This may eventually change so files can be moved or copied in the future
2022-02-10 17:11:10 -08:00
Eggbertx
64123e8e6b
Add stuff for migrating boards to gochan-migration
2022-02-09 10:32:36 -08:00
Eggbertx
3491a7b7b8
Add methods for handling board, thread, staff, etc migration
2022-02-09 09:10:24 -08:00
Eggbertx
c388ef3984
Reopen gochan-migration development
2022-02-07 18:28:27 -08:00
Eggbertx
636fe77e01
Put gochan's migration tool on indefinite hiatus.
...
RIP gochan-migrate :(
2021-12-18 18:49:22 -08:00
Eggbertx
c15c173d9d
Use built-in driver list to check if config has a valid DBtype
2021-08-24 10:57:29 -07:00
Eggbertx
9a9e775283
Add some more tables to gochan-migrate pre2021 pkg
2021-08-20 15:55:51 -07:00
Eggbertx
c0c84209ef
Add some tables for migrating pre-2021 databases
2021-08-15 22:19:51 -07:00
Eggbertx
9c75b85eb3
Add configuration documentation, finish cfg refactoring
2021-08-01 22:44:53 -07:00
Eggbertx
dfdb926d71
Add partially refactored configuration changes
2021-07-11 11:51:29 -07:00
Eggbertx
e9cbd89e18
Add dedicated chan migration packages
2021-06-24 16:41:26 -07:00
Eggbertx
2382b30af1
Move minifier functions to serverutil package
...
gcutil should only be used for stuff that doesn't require configuration
2021-03-25 14:42:46 -07:00
Eggbertx
55317504a1
Fix anti-patterns pointed out by DeepSource
...
But not the switch fallthroughs/expression lists, there's no benefit
2020-07-09 15:54:31 -07: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
988324b82a
Fix number linking
2020-07-08 19:44:16 +02:00
comraderat
5152b3edf5
Fix bugs
2020-06-30 17:11:36 +02:00
comraderat
a1df373935
Remove temporary code. Wrap up.
2020-06-29 23:37:17 +02:00
comraderat
9dd3876331
Finish database migratory script
2020-06-29 23:15:34 +02:00
comraderat
46b7c6e5e7
Add testing code
2020-06-19 16:26:03 +02:00
comraderat
1539d6b571
Add testing code
2020-06-19 16:23:08 +02:00
comraderat
91661fc4b4
Fix version check
...
Remove temp code
2020-06-19 16:16:47 +02:00
Eggbertx
d51506b2f3
Make gcsql.GetCompleteDatabaseVersion return an int flag instead of a bunch of booleans
...
Also isolate SQL host address if it is encased in tcp()
2020-06-16 13:31:47 -07:00
Eggbertx
a69b6748c7
Remove SQLite support due to instability
2020-06-15 11:27:14 -07:00
comraderat
31f9c57a35
Add pre-migrate check for missing migrations.
2020-06-14 15:53:06 +02:00
comraderat
225bb518c0
Move migration logic to cmd/gochan-migration
2020-06-13 21:47:43 +02:00
Eggbertx
40c1f48186
Fix json tag, Printf usage, add initial gochan-migration stuff
...
TODO: make gochan-migration actually useful
2020-06-12 11:01:28 -07:00
comraderat
e3036d302f
Stopped deleting sessions table on server close
2020-06-11 13:21:50 +02:00
Eggbertx
e6838817fd
Replace GcError struct usage with builtin error
...
Creating it was probably a bad idea and not worth the trouble.
2020-06-06 09:28:45 -07:00
Eggbertx
75dbaa4676
Add command line option to rebuild templates on startup
2020-06-03 12:54:12 -07:00
comraderat
8395e64cbf
Fix template loading
2020-05-22 17:26:06 +02:00
comraderat
9400833242
Implement almost every query
2020-05-14 17:22:36 +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