infisical
infisical copied to clipboard
Function CreateJunctionTable is not checking, if the table already exists or not
Describe the bug
backend/src/db/utils.js createJunctionTable --> it is not checking if the table already exists or not, Table1PrimaryKey and Table2PrimaryKey can be dynamic, for bigger files optional Indexing can make querying faster.
dropOnUpdateTrigger, createOnUpdateTrigger, dropUpdatedAtTriggerFunction, createUpdateAtTriggerFunction --> needs better error handling
To Reproduce
Steps to reproduce the behavior:
- Go to backend/src/db/utils.js
Screenshots
Platform you are having the issue on:
Code