It would be nice if CDbColumnSchema had properties such a isUnique and isIndex.
Now we can check only if column isPrimaryKey or isForeignKey.
Page 1 of 1
DbSchema columns indexes
#3
Posted 23 December 2008 - 11:21 AM
I'm writing apllictation which will work on some existing dbs. I have a console application which checks wheter existing tables have all columns and indexes which I need in my apllication. If not table is altered.
Most is easy to do with DbSchema but there is no information about indexes.
Most is easy to do with DbSchema but there is no information about indexes.
#4
Posted 24 December 2008 - 07:09 AM
I was thinking about it and I think that this feature is completly not necessary.
DbSchema classes should be as simple as it is possible because writing new drivers classes should be easy. Sorry for this confusion.
DbSchema classes should be as simple as it is possible because writing new drivers classes should be easy. Sorry for this confusion.
#5
Posted 29 November 2012 - 06:51 AM
i also need this functionality.
im writing a script that generates a migration file from an existing database schema. but without the index information its pretty much useless.
is there some kind of workaround?
im writing a script that generates a migration file from an existing database schema. but without the index information its pretty much useless.
is there some kind of workaround?
#6
Posted 29 November 2012 - 10:16 AM
I'd rather have this in some extension for specialised cases like yours and not bloat core code for common use cases.
Share this topic:
Page 1 of 1

Help











