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

Constraints - naming and comments #474

Merged
merged 3 commits into from
Aug 16, 2019
Merged

Conversation

ab-pm
Copy link
Contributor

@ab-pm ab-pm commented Aug 14, 2019

I hope you enjoy :-) See commit messages for details.

ab-pm added 2 commits August 13, 2019 18:24
* added escaping to `references` field when only a table name is given
* now also creates default constraint names when you don't pass anything in `addConstraint`

fixes salsita#467
- add some tests (not exhaustive though)
- update docs
- a `referencesConstraintComment` on a column definition auto-generates a constraint name if none is given

Closes salsita#467.
Copy link
Contributor

@dolezel dolezel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@dolezel dolezel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would need also updating index.d.ts though...

Copy link
Contributor

@dolezel dolezel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would need also updating index.d.ts though...

@dolezel dolezel merged commit c98b933 into salsita:master Aug 16, 2019
@ab-pm
Copy link
Contributor Author

ab-pm commented Aug 16, 2019

Ah, I forgot about index.d.ts… Thanks for merging!

@dolezel dolezel changed the title Constraints Constraints - naming and comments Aug 19, 2019
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