Feature: UNIQUE keys
Tuesday, November 25th, 2008This is another one of those features people have been asking for a lot. The ability to specify whether or not a column within a table is to be UNIQUE or not. I have therefore implemented two functions to modify columns within a table to set and unset UNIQUEness for the specified column. If you want to set a column as UNIQUE, it must be the case that the existing rows not have any non-unique values for the column in question. Otherwise, I think it’s pretty straightforward. Let me know how it works out.
UNIQUE columns
I still have to work on updating this for the UI on the website, as well as displaying this information about columns in certain pages, but slogging now works according to how the column is specified. (If you try to add a row with a non-unique value for a UNIQUE column, you’ll get an error stating that you didn’t provide a unique value where required)