Eggbertx
0d68fc78cf
Add fingerprinting table update to gochan-migrate
2024-02-12 13:52:00 -08:00
Eggbertx
2a49de7575
Audit potential bugs pointed out by Deepsource
2024-02-07 15:15:56 -08:00
Eggbertx
f62e2a506f
Remove redundant defer
2024-02-06 12:34:30 -08:00
Eggbertx
d892e77b3b
Avoid deferring calls to Close() if it may return an error
2024-02-06 12:30:18 -08:00
Eggbertx
1deec0e462
Add country and flag columns to DB version 3 schema
2024-01-12 15:51:05 -08:00
Eggbertx
9352f0b611
Fix prefix not being applied in DB update
2024-01-09 21:45:39 -08:00
Eggbertx
0e34698257
Add more Postgres db migration for IP -> INET, split dbtypes into their own files
2024-01-09 13:11:22 -08:00
Eggbertx
121959fa15
Convert DBPREFIXposts.ip and DBPREFIXreports.ip to VARBINARY
2024-01-01 13:30:32 -08:00
Eggbertx
57693ba549
Replace IP field of IPBan with RangeStart and RangeEnd
2023-12-28 23:06:44 -08:00
Eggbertx
28963eb813
Add IP Range parsing, start working on adding range bans
2023-12-28 00:36:24 -08:00
Eggbertx
cc76b25a8d
Move SQL driver imports to gcsql package, add SQL connection time limits
...
7cf5482876/README.md (important-settings)
2023-08-18 08:33:50 -07:00
deepsource-autofix[bot]
79bae10fa1
refactor: fix unused method receiver
...
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep
the same method signature, omit the receiver name or '_' as it is unused.
2023-05-22 22:09:00 +00:00
deepsource-autofix[bot]
1d92be6f63
refactor: unused parameter should be replaced by underscore
...
Unused parameters in functions or methods should be replaced with `_`
(underscore) or removed.
2023-05-22 15:57:55 +00:00
Eggbertx
ada23ffed8
Print a separate string if the database was updated instead of migrated
2023-04-07 15:11:02 -07:00
Eggbertx
17c28e5ebe
Move database schema updating to gochan-migration
2023-04-07 14:34:28 -07:00
Eggbertx
29f54a6064
parse command line flags in gochan-migration before loading config
2023-03-29 09:35:46 -07:00
Eggbertx
aba84ceed2
Use router package instead of GET parameter for manage pages
2023-01-04 15:33:50 -08:00
Eggbertx
813b194f27
Start readding postgresql and sqlite support broken by deprecation fixing
2022-12-13 12:44:16 -08:00
Eggbertx
b69536b772
Add IP ban checking function
2022-11-02 16:26:15 -07:00
Eggbertx
fb708bb6f3
add some board info functions
2022-10-31 12:43:39 -07:00
Eggbertx
6567da3300
Add de-deprecation stuff (will not build yet)
2022-10-11 14:26:31 -07:00
Eggbertx
d2c5015714
Replace deprecated ioutil imports
2022-09-08 15:45:29 -07:00
deepsource-autofix[bot]
f639fdde6d
Fix unused method receiver
2022-09-04 21:57:01 +00:00
Eggbertx
ffcf4a1e61
remove logging from gcsql except where necessary (it should be done elsewhere)
2022-09-03 14:51:37 -07:00
Eggbertx
35a4dfc7b1
Don't use gclog for gochan-migrate
2022-08-14 14:27:58 -07:00
Eggbertx
5bfbeabf13
Fix a bunch of large value copies as suggested by deepsource
2022-05-12 11:28:15 -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
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
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
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