cfwheels-dbmigrate-plugin icon indicating copy to clipboard operation
cfwheels-dbmigrate-plugin copied to clipboard

Allow for the unique identifier column type (MS-GUID).

Open tdm00 opened this issue 13 years ago • 3 comments

tdm00 avatar Sep 12 '11 14:09 tdm00

Using DBMigrate/MySQL, can I set constraint on a column to make sure it's unique, such as email?

geirman avatar Apr 21 '12 22:04 geirman

You would do this in your model file

On Apr 21, 2012, at 6:38 PM, geirman [email protected] wrote:

can I set constraint on a column to make sure it's unique, such as email?


Reply to this email directly or view it on GitHub: https://github.com/talltroym/cfwheels-dbmigrate-plugin/issues/1#issuecomment-5264174

tdm00 avatar Apr 21 '12 22:04 tdm00

Thanks Troy, I've already done that. I can also set character length constraints in the model, but it's nice if I can also reinforce with a constraint in the table itself. Was just wondering... but the model should do :)

geirman avatar Apr 21 '12 23:04 geirman