projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UpdateDatabase.php
[Pman.Core]
/
UpdateDatabase.php
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
0be3938
..
bbc428c
100644
(file)
--- 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("
// fix comptypeid
$c = DB_DataObject::Factory('core_company');
$c->query("
- UPDATE
Companies
+ UPDATE
{$c->tableName()}
SET
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
WHERE
comptype_id = 0
AND