From 88c1bc1d2cc0d578fadc0fc53ad71f4ed694990d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 11 Oct 2016 11:12:16 +0800 Subject: [PATCH] UpdateDatabase.php --- UpdateDatabase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UpdateDatabase.php b/UpdateDatabase.php index 0be39387..bbc428c0 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -763,9 +763,9 @@ class Pman_Core_UpdateDatabase extends Pman // fix comptypeid $c = DB_DataObject::Factory('core_company'); $c->query(" - UPDATE Companies + UPDATE {$c->tableName()} SET - comptype_id = (SELECT id FROM core_enum where etype='comptype' and name=Companies.comptype LIMIT 1) + comptype_id = (SELECT id FROM core_enum where etype='comptype' and name={$c->tableName()}.comptype LIMIT 1) WHERE comptype_id = 0 AND -- 2.39.2