seade 2004/08/20 04:48:47
Modified: src/generator/src/templates/sql/base/postgresql drop.vm
table.vm
xdocs changes.xml
Removed: src/generator/src/templates/sql/base/postgresql sequence.vm
Log:
Generate sequences correctly for PostgreSQL (i.e. leave it to PostgreSQL). Note that schemas
produced from the database using the torque:jdbc goal are not yet handling sequences correctly.
Revision Changes Path
1.3 +0 -3 db-torque/src/generator/src/templates/sql/base/postgresql/drop.vm
Index: drop.vm
===================================================================
RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/postgresql/drop.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- drop.vm 24 Mar 2004 02:29:46 -0000 1.2
+++ drop.vm 20 Aug 2004 11:48:46 -0000 1.3
@@ -1,4 +1 @@
DROP TABLE $table.Name CASCADE;
-#if ($table.IdMethod == "native")
-DROP SEQUENCE $table.SequenceName;
-#end
1.2 +0 -2 db-torque/src/generator/src/templates/sql/base/postgresql/table.vm
Index: table.vm
===================================================================
RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/postgresql/table.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- table.vm 10 Feb 2003 13:18:47 -0000 1.1
+++ table.vm 20 Aug 2004 11:48:46 -0000 1.2
@@ -3,8 +3,6 @@
-- $table.Name
-----------------------------------------------------------------------------
$generator.parse("$basepath/drop.vm", "", "table", $tbl)
-#set ( $sequence = $generator.parse("$basepath/sequence.vm", "", "table", $tbl) )
-#if ($sequence.length()>0)$sequence#end
CREATE TABLE $table.Name
(
1.128 +6 -0 db-torque/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/db-torque/xdocs/changes.xml,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -r1.127 -r1.128
--- changes.xml 20 Aug 2004 03:18:22 -0000 1.127
+++ changes.xml 20 Aug 2004 11:48:46 -0000 1.128
@@ -8,6 +8,12 @@
<body>
<release version="3.2-alpha" date="in CVS">
+ <action dev='seade' type='fix'>
+ Generate sequences correctly for PostgreSQL (i.e. leave it to
+ PostgreSQL). Note that schemas produced from the database using
+ the <code>torque:jdbc</code> goal are not yet handling sequences
+ correctly.
+ </action>
<action dev='henning' type='update'>
Upgrade to commons-collections-3.0, commons-configuration-1.0-rc1 and
commons-logging-1.0.4.
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
|