Eggbertx
f37dbbc840
Rename threads column spoilered to is_spoilered for consistency
2025-04-16 16:57:44 -07:00
Eggbertx
3dc45fef53
Add spoilered column and migration, update tests in gctemplates to use goquery to not have to test against really big strings
2025-04-13 01:18:55 -07:00
Eggbertx
556de0d4ac
Show secure tripcodes
2025-04-06 16:07:37 -07:00
Eggbertx
4c0ce122ad
Add is_secure_tripcode column to posts and update gochan-migration to add it
2025-04-06 15:08:46 -07:00
Eggbertx
b0e88c551d
Return error in InitConfig instead of exiting outright if something goes wrong
2025-03-03 17:16:48 -08:00
Eggbertx
0244811a7f
Fix more deepsource issues
2025-02-18 20:33:33 -08:00
deepsource-autofix[bot]
39fdc0566f
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.
2025-02-19 04:05:57 +00:00
Eggbertx
7ceda2b218
Fully refactor all (or at least most) uses of ExecSQL, QuerySQL, and QueryRowSQL, QueryContextSQL, etc with their replacement functions
2025-02-05 23:32:12 -08:00
Eggbertx
10e0da4492
Add future-proof functions using struct for context, tx, etc
2025-02-05 17:32:10 -08:00
Eggbertx
a38a519e4e
Fix database locked error in announcement migration
2025-02-02 15:35:57 -08:00
Eggbertx
cbd1dd8a99
Start changing migrating to have "in-place" migration rename boards to be recreated and populated
2025-02-02 15:26:33 -08:00
Eggbertx
fcb61cac57
Use separate function to validate pre2021 migration results
2025-01-26 22:35:35 -08:00
Eggbertx
2f39e9d7cc
Add tests for announcement migration
2025-01-26 17:12:23 -08:00
Eggbertx
5c4e200631
Implement in-place announcement migration
2025-01-26 17:01:27 -08:00
Eggbertx
d3c985bd50
Implement staff and ban migration in place, and the respective tests
2025-01-26 16:24:45 -08:00
Eggbertx
f0f0f055da
Add post migration in place
2025-01-25 17:46:55 -08:00
Eggbertx
cec68cb29b
Implement in-place board migration
2025-01-25 13:34:33 -08:00
Eggbertx
12350cc33f
Add warning when migrating a SQLite database in-place
2025-01-25 13:01:52 -08:00
Eggbertx
65d4dee673
Add alter statements for in-place board migration
2025-01-25 11:41:26 -08:00
Eggbertx
e2b5883e51
Start implementing in-place migration for pre2021
2025-01-19 15:04:03 -08:00
Eggbertx
625aadb0d0
Update TestPre2021Migration with proper assertion
2025-01-10 17:37:27 -08:00
Eggbertx
5d782c4eab
Add clarification to migrator comments
2025-01-10 16:44:19 -08:00
Eggbertx
175710b43b
Add announcement migration
2025-01-05 17:23:18 -08:00
Eggbertx
4f9f1e0d3f
Add migrating pre-2021 name/file bans to filters
2025-01-05 16:01:17 -08:00
Eggbertx
01d7a722a5
Properly migrate ban staff ID
2025-01-05 15:37:46 -08:00
Eggbertx
7cb3100140
Implement pre-2021 staff migration to new DB
2025-01-05 15:18:11 -08:00
Eggbertx
1dc22b6571
Add stubs for pre-2021 staff migration
2025-01-05 14:11:11 -08:00
Eggbertx
a34a1f1d57
Add board ban migration and verify that no invalid bans were migrated
2025-01-03 23:39:45 -08:00
Eggbertx
9ca424f4da
Ad test for pre2021 ban migration and start adding implementation
2025-01-03 23:21:16 -08:00
Eggbertx
ee0b91059f
Add pre-2021 post upload migration
2025-01-03 22:01:16 -08:00
Eggbertx
7cddc3e43e
Make pre-migration /test/ have board id 3, make sure no deleted threads were migrated
2025-01-03 21:14:16 -08:00
Eggbertx
95460e91d6
Add thread post migration for pre2021
2025-01-02 23:15:23 -08:00
Eggbertx
c80970c10e
Migrate thread data to new threads table
2025-01-02 22:28:29 -08:00
Eggbertx
d19f0eebe3
Move board migration testing for pre2021 to a separate file
2025-01-02 20:36:19 -08:00
Eggbertx
00fbd8f6c3
Add TestMigrateBoardsInPlace
2025-01-02 20:31:55 -08:00
Eggbertx
4699417370
Start adding stuff for testing migrating pre-2021 DB in place
2025-01-02 20:03:26 -08:00
Eggbertx
6d48a1948a
Fully migrate and update board and section data to new DB for pre-2021
2025-01-02 19:51:38 -08:00
Eggbertx
525c5953d9
Properly migrate board and sections, and have board point to correct section
2025-01-02 17:00:25 -08:00
Eggbertx
beb048716e
Move setup functionality in test to a separate function
2025-01-01 17:58:09 -08:00
Eggbertx
90986e58b8
Add pre2021 section migration
2025-01-01 14:53:10 -08:00
Eggbertx
b34a956baa
Start adding pre-2021 testing
2025-01-01 14:52:43 -08:00
Eggbertx
8b994dce57
Consolidate board fields in pre-2021 migration struct and use equivalent gcsql.Board fields
2025-01-01 11:55:44 -08:00
Eggbertx
3d15c272e9
Include stack trace in MigrateBoards recovery log, replace old stuff in IsMigrated with common.TableExists
2024-12-31 17:16:25 -08:00
Eggbertx
0d0aca83af
Add gcsql.GetSectionFromName and start overhaul of pre2021 migration
2024-12-31 15:36:20 -08:00
Eggbertx
75d5b32cdc
Start working on making it possible to migrate old imageboard DB in place
2024-12-29 17:49:05 -08:00
Eggbertx
7eabd5bfd8
Split filter migration back into their own methods and separate transactions
2024-10-13 21:47:12 -07:00
Eggbertx
f65ac476a2
Handle recover in migration defer functions and properly capture return error
2024-10-13 20:41:50 -07:00
Eggbertx
8d98bc39df
Move filter migration out of common
2024-10-13 20:30:38 -07:00
Eggbertx
eb06047055
Use more context/timeout queries in gochan-migrate, start using zerolog
2024-10-13 13:43:08 -07:00
Eggbertx
9586535edc
Add fixes to gochan-migration
2024-09-18 22:17:30 -07:00