projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d8ad0bf
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Tue, 11 Oct 2016 03:12:16 +0000
(11:12 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 11 Oct 2016 03:12:16 +0000
(11:12 +0800)
UpdateDatabase.php
patch
|
blob
|
history
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("
- 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