projects
/
Pman.Xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e3a00
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 04:59:04 +0000
(12:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 04:59:04 +0000
(12:59 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
fcd9e22
..
9ce57c4
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-184,7
+184,7
@@
class Pman_Xtuple_UpdateDatabase extends Pman
$cs = DB_DataObject::factory('core_enum');
$cs->query("
SELECT 'SELECT SETVAL(' ||
- quote_literal(quote_ident(nspname) || '.' || quote_ident(S.relname))
)
||
+ quote_literal(quote_ident(nspname) || '.' || quote_ident(S.relname))||
', MAX(' || quote_ident(C.attname)|| ') ) FROM ' || nspname || '.' || quote_ident(T.relname)|| ';' as cmd
FROM pg_class AS S,
pg_depend AS D,