Eggbertx
556a0e92f7
Update backend and frontend dependencies
2020-10-08 18:08:14 -07:00
Eggbertx
562b4cb6be
make VirtualBox the default vagrant provider
...
You can still use libvirt by running GC_PROVIDER=libvirt vagrant up
2020-10-01 17:32:17 -07:00
Eggbertx
e3acd4a6d0
Add docker building to Makefile
2020-09-20 12:07:00 -07:00
Eggbertx
5734ebf4de
Use libvirt/KVM by default for vagrant
...
temporary workaround for #45
2020-09-07 17:09:09 -07:00
Eggbertx
e375750e97
Replace strings.ReplaceAll with strings.Replace for compatibility
2020-07-27 18:19:56 -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
Eggbertx
497a3925e0
Delete post upload(s) if we get an error
2020-07-09 13:08:24 -07:00
Eggbertx
ba1f49a47c
Fix broken thumbnail expansion in frontend refactor
...
Also remove unnecessary error logging in manage.GetStaffRank
2020-07-08 22:46:05 -07:00
comraderat
9816c0b2f0
Fix gochan sample config and fix readme
2020-07-08 21:40:22 +02:00
comraderat
83d9bbafdf
Fix bug not reparsing html
2020-07-08 21:00:46 +02:00
comraderat
2d8cf0a6ae
Add debug improvements to read full strings
...
(Why is the default value fucking 64?)
2020-07-08 20:49:43 +02: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
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
5152b3edf5
Fix bugs
2020-06-30 17:11:36 +02:00
comraderat
9df26c227d
Merge branch 'OldVersionMigration' into Database_refactor
2020-06-29 23:38:55 +02:00
comraderat
a1df373935
Remove temporary code. Wrap up.
2020-06-29 23:37:17 +02:00
comraderat
dc24822d0b
Fix errors.
2020-06-29 23:37:07 +02:00
comraderat
e42fbdd9a9
Merge branch 'Database_refactor' into OldVersionMigration
2020-06-29 23:18:38 +02:00
comraderat
9dd3876331
Finish database migratory script
2020-06-29 23:15:34 +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
Eggbertx
b4a827779a
Merge branch 'Database_refactor' of github.com:gochan-org/gochan into Database_refactor
2020-06-26 18:03:17 -07:00
Eggbertx
4e60807b13
Fix issue with gcsql.PrepareSQL not properly handling variables
2020-06-26 18:01:25 -07:00
comraderat
23c6de7523
Migrate thread and normal ip bans
2020-06-19 17:16:30 +02:00
comraderat
d9316529fe
Remove not null constraint from board_id on ip bans
2020-06-19 17:16:30 +02:00
comraderat
776273ffdb
Fix board and staff id in bans
2020-06-19 17:16:09 +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
comraderat
ee8ac770e4
Safe branch commit
2020-06-13 19:28:20 +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
d7fdd1ca19
Add normalisation step for bans
2020-06-12 15:54:14 +02:00
comraderat
3e564bcc4a
Finish thread/post/file migration.
2020-06-11 20:11:46 +02:00
comraderat
3905ec1393
Add #if flag markers in sql macro script
...
Made some changes
2020-06-11 17:20:59 +02:00
comraderat
72eb7e5467
Fix mariadb connection error
2020-06-11 15:24:52 +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
e3036d302f
Stopped deleting sessions table on server close
2020-06-11 13:21:50 +02:00
comraderat
2b5fe5e415
merge commit
2020-06-07 16:08:24 +02:00
comraderat
da1e9c9eca
Merge branch 'Database_refactor' of https://github.com/gochan-org/gochan into Database_refactor
2020-06-07 15:56:53 +02:00
Eggbertx
418468ff97
remove unnecessary GcLogger struct, use exported functions instead
2020-06-06 12:52:12 -07:00
Eggbertx
9ab597be64
Prevent gclog.Println from adding an extra newline
...
Also add more thorough gclog testing
2020-06-06 09:56:13 -07: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
40ce904a10
Add ES6 frontend so far
...
Not fully stable yet
2020-06-03 15:43:35 -07:00
Eggbertx
d1bcaa52b4
Fix crash when checking/printing error in posting.MakePost
2020-06-03 14:00:55 -07:00
Eggbertx
75dbaa4676
Add command line option to rebuild templates on startup
2020-06-03 12:54:12 -07:00