Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Making a table auto-increment

Quote Reply
Making a table auto-increment
Hello all,

I am writing a plugin that requires a table to be added. I can create a table fine in my install script except that I can't make one with an auto increment on the primary key. I can't find documentation in the GT::SQL::Creator section saying how to do it.

Does anyone know?

Also I want to add a unique constraint to a column. It says that GT::SQL::Creator::unique takes the same args as GT::SQL::Creator::index but I can't get the unique constraint to work either.

Can anyone help me?

Thanks,

Tommy
Subject Author Views Date
Thread Making a table auto-increment tommyfotak 3021 Jul 9, 2002, 3:21 PM
Thread Re: [tommyfotak] Making a table auto-increment
Ian 2833 Jul 9, 2002, 4:44 PM
Post Re: [Ian] Making a table auto-increment
tommyfotak 2819 Jul 10, 2002, 2:07 AM