Fixes #1984 undeclared variable usage in CDbMigration
Merge pull request #1985 from papulovskiy/1984-cdbmigration-primarykey-fix

Fixes #1984 undeclared variable usage in CDbMigration