Commits

Yury Shulaev committed f19fdc6

exchange "Table Properties" and "Foreign Keys" sections in MySQL export output

  • Participants
  • Parent commits 6759cb1

Comments (0)

Files changed (1)

db/mysql/output.xsl

 	</xsl:for-each>
 
 <xsl:text>-- ---
+-- Table Properties
+-- ---
+
+</xsl:text>
+    <xsl:for-each select="table">
+    <xsl:text>ALTER TABLE `</xsl:text><xsl:value-of select="@name" />
+    <xsl:text>` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+</xsl:text>
+    </xsl:for-each>
+
+<xsl:text>
+-- ---
 -- Foreign Keys
 -- ---
 
 		</xsl:for-each>
 	</xsl:for-each>
 
-<xsl:text>
--- ---
--- Table Properties
--- ---
-
-</xsl:text>
-	<xsl:for-each select="table">
-    <xsl:text>ALTER TABLE `</xsl:text><xsl:value-of select="@name" />
-    <xsl:text>` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-</xsl:text>
-	</xsl:for-each>
-
 </xsl:template>
 </xsl:stylesheet>