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

CreateJunctionTable checks for table and optional foreign key and better error handling #2278

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Ayush-Dutt-Sharma
Copy link
Contributor

Description 📣

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

Condition to check for existing table
Screenshot 2024-08-12 at 5 54 48 PM

Conditional Indexing on Foreign key
Screenshot 2024-08-12 at 5 55 18 PM

Added better Error Handling

Type ✨

backend/src/db/utils.ts Outdated Show resolved Hide resolved
backend/src/db/utils.ts Outdated Show resolved Hide resolved
@akhilmhdh
Copy link
Member

@Ayush-Dutt-Sharma please remove the consoles also. Its not needed as i told knex providers a pretty elaborate error message when failing

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

Successfully merging this pull request may close these issues.

2 participants