Lines Matching refs:version
466 * Read the current version from the opt table
476 $version = $this->getOpt('dbversion', 0);
477 return (int)$version;
502 * Get the version this db should have
509 if (!file_exists($this->schemadir . '/latest.version')) {
510 throw new \PDOException('No latest.version in schema dir');
512 return (int)trim(file_get_contents($this->schemadir . '/latest.version'));
516 * Get the migrartion file for the given version
518 * @param int $version
521 protected function getMigrationFile($version)
523 return sprintf($this->schemadir . '/update%04d.sql', $version);