blob: f1bfb6bb533aaddc8c8387e7fefc3c71445e4ba5 [file] [log] [blame]
#foreach ($col in $table.Columns)
#set ( $type = $dbprops.get($col.Type) )
#set ( $size = $col.printSize() )
#if ( $dbprops.get("suppressDefaults") == "true" )
#set ( $default = "" )
#else
#set ( $default = $col.DefaultSetting )
#end
#if ( ($dbprops.get("removeNotNullWithAutoIncrement") == "true") && $col.isAutoIncrement() && $col.isNotNull() )
#set ( $nullString = "" )
#else
#set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),"NULL") )
#end
#set ( $autoIncrement = $strings.select($col.isAutoIncrement(), $dbprops.get("AUTOINCREMENT"),"") )
#set ( $entry = "$col.Name $type $size $default $nullString $autoIncrement," )
$strings.sub($strings.collapseSpaces($entry)," ,",",")
#end