Changeset 6149
- Timestamp:
- 11/23/07 05:50:46 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelMigrationsLightPlugin/trunk/lib/sfMigrator.class.php
r5736 r6149 312 312 // check if schema_info table exists 313 313 $result = self::executeQuery("SHOW TABLES LIKE 'schema_info'"); 314 315 $exists = false; 314 316 if ($result instanceof PDOStatement) { 315 317 $exists = ($result->rowCount() == 1); 316 318 } else { 317 $exists = ($r s->getRecordCount() == 1);319 $exists = ($result->getRecordCount() == 1); 318 320 } 319 321 … … 328 330 else 329 331 { 330 if ($r s->next())332 if ($result->next()) 331 333 { 332 $currentVersion = $r s->getInt("version");334 $currentVersion = $result->getInt("version"); 333 335 } 334 336 else