From e1791525e818d7d4276da0fe7e7c526fe8794e7c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 2 Jun 2011 13:58:53 -0400 Subject: [PATCH] initialize schema_version table after install --- .../domainstatusnetworkinstaller.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/DomainStatusNetwork/domainstatusnetworkinstaller.php b/plugins/DomainStatusNetwork/domainstatusnetworkinstaller.php index efa7784955..b2e988b5e1 100644 --- a/plugins/DomainStatusNetwork/domainstatusnetworkinstaller.php +++ b/plugins/DomainStatusNetwork/domainstatusnetworkinstaller.php @@ -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'); } -- 2.39.5