Eggbertx
d5f489ef22
implement all installer pages, add DBPREFIX to constraints (not necessary to update if already installed)
2025-06-27 17:01:57 -07:00
Eggbertx
305b557e41
Refactor threads table, rename cyclical attribute to cyclic for consistency
2025-05-02 11:47:01 -07:00
Eggbertx
c143596f80
Replace parsed gochan version type with constant string and DB version passed by parameter with constant int
2025-04-22 17:03:52 -07:00
Eggbertx
83f8601334
Refactor thread and post data structures to include IsSpoilered and update related queries and templates (still a WIP)
2025-04-21 17:10:42 -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
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
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
bece29d440
Refactor connection function signatures to use config.SQLConfig, start adding context usage to gcsql
2024-05-01 17:32:19 -07: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
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