mpoeschl 2003/08/01 01:25:22
Modified: src/generator/src/templates/sql/base/mysql columns.vm
Log:
the handling of the idMethod is done by the model, so we don't have to check it in
the template too
Revision Changes Path
1.2 +1 -1 db-torque/src/generator/src/templates/sql/base/mysql/columns.vm
Index: columns.vm
===================================================================
RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/mysql/columns.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- columns.vm 10 Feb 2003 13:18:49 -0000 1.1
+++ columns.vm 1 Aug 2003 08:25:22 -0000 1.2
@@ -4,7 +4,7 @@
#set ( $default = $col.DefaultSetting )
#set ( $nullString = $strings.select($col.isNotNull(),
$dbprops.get("NOTNULL"),"") )
#set ( $autoIncrement = $strings.select($col.isAutoIncrement(),
$dbprops.get("AUTOINCREMENT"),"") )
- #if ((($database.getDefaultIdMethod() == "native") && ($table.getIdMethod() ==
"")) || ($table.getIdMethod() == "native"))
+ #if ($table.getIdMethod() == "native")
#if ($col.isPrimaryKey() && ($col.Type == "INTEGER"))
#set ( $autoIncrement = $dbprops.get("AUTOINCREMENT"))
#end
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]