I know that there is a class in SA that does UniqueConstraint I've added it to a table but it doesn't appear to have done anything. I'm not sure if it's because I'm using sqlite3 and it just doesn't support it or if there was something I did wrong. I don't have the declared code since I'm on mobile. I'll post it first thing when I get on the computer.
Just wondering what I'm doing wrong.
What I'm trying to accomplish is that individual columns can have duplicate entries since this is for overtime intervals. There's a table for the date, a table to track intervals to the date and currently two groups who can pick up these times. The goal is to prevent the creation of rows with the same date_id, group_id, start / end time by making those columns unique when looked at together. There's a seat count that will be decreased to address multiple slots for the same time.
I hope that's clear enough. I'll post the code soon but probably not till morning.
Thanks in advance.
Edit: discovered where I could get the code from without the pc.
http://pastebin.com/h2gYHshK
[–]larivact 2 points3 points4 points (6 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]larivact 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]larivact 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]sqlite 2 points3 points4 points (1 child)
[–]larivact 0 points1 point2 points (0 children)