Rickard wrote:keldar wrote:~ message is a reserved word so have changed all column names from message to msg
Hmm, that I don't like. I was hoping it would be possible to do this without affecting the already existing database support. Bummer.
You can get around this by adding dbl quotes to the column when defining, however it is then case sensitive and the case must be preserved in all selects, updates etc.
Rickard wrote:keldar wrote:~ Where date has been added I have changed data type to TIMESTAMP and default (where applicable) to 'NOW'
But isn't a timestamp updated whenever you update the row?
No, its just a datatype, it *could* be updated easily via the triggers if needed.
Rickard wrote:keldar wrote:~ Have added Foreign keys
Not really needed, but still cool.
This is done at the very end of the script, if its not necessary it can be easily omitted
Rickard wrote:keldar wrote:~ Prefix for all objects (Tables, Generators, Index's, Triggers etc) have been set to PUNBB_
Why not use the prefix that is used for tables?
I used that prefix when I created a db, you should be able to do a search/replace on PUNBB_ and all will be ok