Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function CreateJunctionTable is not checking, if the table already exists or not #2277

Open
Ayush-Dutt-Sharma opened this issue Aug 12, 2024 · 0 comments
Assignees

Comments

@Ayush-Dutt-Sharma
Copy link
Contributor

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:

  1. Go to backend/src/db/utils.js

Screenshots

Screenshot 2024-08-12 at 5 43 13 PM

Platform you are having the issue on:

Code

@Ayush-Dutt-Sharma Ayush-Dutt-Sharma changed the title Function CreateJunctionTable is not checking and if the table already exists or not Function CreateJunctionTable is not checking, if the table already exists or not Aug 12, 2024
khushalmajoka added a commit to khushalmajoka/infisical that referenced this issue Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant