initialize schema_version table after install

This commit is contained in:
Evan Prodromou 2011-06-02 13:58:53 -04:00
parent 9a11003c08
commit e1791525e8
1 changed files with 15 additions and 0 deletions

View File

@ -214,6 +214,21 @@ class DomainStatusNetworkInstaller extends Installer
StatusNet::switchSite($this->nickname);
// We need to initialize the schema_version stuff to make later setup easier
$schema = array();
require INSTALLDIR.'/db/core.php';
$tableDefs = $schema;
$schema = Schema::get();
$schemaUpdater = new SchemaUpdater($schema);
foreach ($tableDefs as $table => $def) {
$schemaUpdater->register($table, $def);
}
$schemaUpdater->checkSchema();
Event::handle('CheckSchema');
}