Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Mintplex-Labs/anything-llm. Pull mirroring updated .
  1. Sep 28, 2023
    • Sean Hatfield's avatar
      Replace custom sqlite dbms with prisma (#239) · a126b5f5
      Sean Hatfield authored
      
      * WIP converted all sqlite models into prisma calls
      
      * modify db setup and fix ApiKey model calls in admin.js
      
      * renaming function params to be consistent
      
      * converted adminEndpoints to utilize prisma orm
      
      * converted chatEndpoints to utilize prisma orm
      
      * converted inviteEndpoints to utilize prisma orm
      
      * converted systemEndpoints to utilize prisma orm
      
      * converted workspaceEndpoints to utilize prisma orm
      
      * converting sql queries to prisma calls
      
      * fixed default param bug for orderBy and limit
      
      * fixed typo for workspace chats
      
      * fixed order of deletion to account for sql relations
      
      * fix invite CRUD and workspace management CRUD
      
      * fixed CRUD for api keys
      
      * created prisma setup scripts/docs for understanding how to use prisma
      
      * prisma dependency change
      
      * removing unneeded console.logs
      
      * removing unneeded sql escape function
      
      * linting and creating migration script
      
      * migration from depreciated sqlite script update
      
      * removing unneeded migrations in prisma folder
      
      * create backup of old sqlite db and use transactions to ensure all operations complete successfully
      
      * adding migrations to gitignore
      
      * updated PRISMA.md docs for info on how to use sqlite migration script
      
      * comment changes
      
      * adding back migrations folder to repo
      
      * Reviewing SQL and prisma integraiton on fresh repo
      
      * update inline key replacement
      
      * ensure migration script executes and maps foreign_keys regardless of db ordering
      
      * run migration endpoint
      
      * support new prisma backend
      
      * bump version
      
      * change migration call
      
      ---------
      
      Co-authored-by: default avatartimothycarambat <rambat1010@gmail.com>
      Unverified
      a126b5f5
  2. Sep 26, 2023
  3. Sep 21, 2023
  4. Sep 18, 2023
  5. Sep 13, 2023
  6. Sep 12, 2023
  7. Sep 11, 2023
  8. Sep 08, 2023
  9. Aug 30, 2023
  10. Aug 25, 2023
  11. Aug 24, 2023
  12. Aug 23, 2023
  13. Aug 22, 2023
  14. Aug 21, 2023
  15. Aug 18, 2023
  16. Aug 17, 2023
  17. Aug 16, 2023
  18. Aug 15, 2023
Loading