jmcnally 01/12/26 14:09:33
Modified: src/templates/sql/base/mysql db.props table.vm
Log:
patch by Russ Trotter to add a table type to the mysql table creation scripts.
modified by me to use db.props instead of build.properties
Revision Changes Path
1.4 +6 -0 jakarta-turbine-torque/src/templates/sql/base/mysql/db.props
Index: db.props
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/templates/sql/base/mysql/db.props,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- db.props 2001/11/08 04:22:13 1.3
+++ db.props 2001/12/26 22:09:33 1.4
@@ -39,3 +39,9 @@
removeNotNullWithAutoIncrement = false
suppressDefaults = false
maxColumnNameLength = 64
+
+
+# See mysql docs for valid table type names.
+# For example, if you wanted to use the transactional type InnoDB,
+# then specify "tableType = InnoDB"
+#tableType = MyISAM
1.4 +1 -1 jakarta-turbine-torque/src/templates/sql/base/mysql/table.vm
Index: table.vm
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/templates/sql/base/mysql/table.vm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- table.vm 2001/11/15 00:56:26 1.3
+++ table.vm 2001/12/26 22:09:33 1.4
@@ -16,4 +16,4 @@
#if($strings.allEmpty([$index]) &&
$unique.length()>0)$strings.chop($unique,2)#else$unique#end
#if($index.length() > 0)$strings.chop($index,2)#end
-);
+)#if($dbprops.get("tableType")) Type=$dbprops.get("tableType")#end;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>