From ac2447c395da8f2b544b187eb26217a90bb3016a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 29 Oct 2010 14:58:52 -0700 Subject: [PATCH] tweak --- lib/schemaupdater.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/schemaupdater.php b/lib/schemaupdater.php index b872b0d578..9577bceebf 100644 --- a/lib/schemaupdater.php +++ b/lib/schemaupdater.php @@ -42,13 +42,21 @@ class SchemaUpdater } /** - * @param array $tableDefs + * @param string $tableName + * @param array $tableDef + */ + public function register($tableName, array $tableDef) + { + $this->tables[$tableName] = $tableDef; + } + + /** * @fixme handle tables that belong on different database servers...? */ - public function checkTables(array $tableDefs) + public function checkTables() { $checksums = $this->checksums; - foreach ($tableDefs as $table => $def) { + foreach ($this->tables as $table => $def) { $checksum = $this->tableChecksum($def); if (empty($checksums[$table])) { common_log(LOG_DEBUG, "No previous schema_version for $table: updating to $checksum"); -- 2.39.5