unique multi-column keys in sqlite, fixes #97
This commit is contained in:
@@ -58,14 +58,10 @@
|
|||||||
|
|
||||||
<!-- keys after table -->
|
<!-- keys after table -->
|
||||||
<xsl:for-each select="key">
|
<xsl:for-each select="key">
|
||||||
<xsl:if test="@type = 'UNIQUE' or (@type = 'PRIMARY' and count(child::part) > 1)">
|
<xsl:if test="@type = 'UNIQUE' or (@type = 'PRIMARY' and count(child::part) > 1)">
|
||||||
<xsl:text>,
|
<xsl:text>,
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
<xsl:choose>
|
<xsl:text>UNIQUE (</xsl:text>
|
||||||
<xsl:when test="@type = 'PRIMARY'">PRIMARY KEY</xsl:when>
|
|
||||||
<xsl:when test="@type = 'UNIQUE'">UNIQUE</xsl:when>
|
|
||||||
</xsl:choose>
|
|
||||||
<xsl:text> (</xsl:text>
|
|
||||||
|
|
||||||
<xsl:for-each select="part">
|
<xsl:for-each select="part">
|
||||||
<xsl:value-of select="." />
|
<xsl:value-of select="." />
|
||||||
|
|||||||
Reference in New Issue
Block a user