-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to a relational database (#637)
* It boots from SQL * progress on loading playlists * Use uppercase ID * Search based on SQL media * add userID to history entry schema * stash * Migrate history, read history * Typed IDs; move mostly to new schema types * Migrate authentication model to SQL * Update unique constraints * Fix lodash import * Select the right stuff from users * Use Object.groupBy * Use order column for playlist sorting? The other option is to have a JSON column with IDs on the playlists table. * Add linting for JSDoc * SQL config store * stash * Bump kysely * Different way to store playlist item order * Opaque -> Tagged * Port bans * deps: update better-sqlite3 * Remove mongodb connection code * Adding playlist items with sql? * Revert "Remove mongodb connection code" This reverts commit 8b2ae37. * Make migrations work in sql * Try with SQLite * Migrate auth passwords * Better Date support for SQLite * Use json_each * use json_array_length * SQLite utility functions * Fix property name in test * playlist shuffle and cycle with sqlite * Use a flat list of permissions * Various test fixes * Ban test sorta working * small test fixes * acl fixes * some more json sqlite fixes * serialize active playlist id * Implement playlist updates with sql * More JSON fun * users test fixes * test fixes for bans and /now * finish redis connection before changing configs * User avatar / roles return values * test ID fix * Fix playlist item serialization * implement removing playlist items * put comment * Fix issues due to playlist position options * disable sql query logging * various sql booth fixes * Test fixes by moving to new data structure * Inline the email function * Fix email test * This map is a multi map * fix playlist item filter * fix running into apparent bound param limit * Fix serializing media items * check passwords * various type fixes * Fix populating moderator in getBans * Produce JSON-compatible type in serializers * Miscellaneous type fixes * Port favouriting * Types in playlist advance * Update lint settings * Lint autofix * slight jank but its ok * Type fixes post merge * Only connect to mongo in the migration * Remove mongo from tests * Backwards compatibility for /api/now.roles * Implement votes * Move sqlite plugins etc into utils/sqlite * Lint migration * Fix vote queries in booth plugin * Mutes from redis to sqlite * Optionally run most functions in a transaction * deps: update node types * Record favorites in feedback table * remove jsdoc linting it gets in the way quite a bit. maybe later? * Use config store for MOTD * silence logs in tests * use pino-pretty * Fix vote test, do not re-emit unchanged vote submissions * Fix timezone confusion in bans * explicitly store UTC in sqlite * Run eslint --fix * Address lints * Disable lints that i cant get to work * ci: add node 22
- Loading branch information
1 parent
2a315bb
commit 8765523
Showing
87 changed files
with
3,261 additions
and
2,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,7 @@ package-lock.json | |
.nyc_output | ||
|
||
.env | ||
|
||
*.sqlite | ||
*.sqlite-shm | ||
*.sqlite-wal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.