#foreach($dbProperty in $dbPropertyList)
#if (${dbProperty.foreignTable} != "")
alter table ${dbPropertyList.tableName} add constraint fk_${dbPropertyList.tableName}_${dbProperty.fieldName} foreign key (${dbProperty.fieldName}) references ${dbProperty.foreignTable} (${dbProperty.foreignKey});
#end
#end