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

Disallow overlapping events #1

Closed
davisford opened this issue Nov 4, 2015 · 2 comments
Closed

Disallow overlapping events #1

davisford opened this issue Nov 4, 2015 · 2 comments

Comments

@davisford
Copy link

Hi, I realize this is a long shot as this is an old repo, and not probably being maintained anymore, but I've been reading and experimenting with this solution which led me here.

I have a slight twist in that I'd like to disallow overlapping event timestamps. I was wondering if you had any quick pointers on how to enforce such a change?

@bakineggs
Copy link
Owner

One way you could disallow overlapping event timestamps is by using triggers. Create a trigger that fires on any inserts or updates and checks to make sure the new/changed row does not overlap with another event, raising an exception if it does.

@davisford
Copy link
Author

Thanks, yea, I did go that route.

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

2 participants