Module: kamailio Branch: master Commit: e03b12a80d6ce2f846f757004dff87d5e770c3b6 URL: https://github.com/kamailio/kamailio/commit/e03b12a80d6ce2f846f757004dff87d5...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-12-04T21:57:44+01:00
core: stylesheet for generating db schema updated for version insert
- version is inserted after the table was succesfully created - avoid version record without table
---
Modified: doc/stylesheets/dbschema_k/xsl/sql.xsl
---
Diff: https://github.com/kamailio/kamailio/commit/e03b12a80d6ce2f846f757004dff87d5... Patch: https://github.com/kamailio/kamailio/commit/e03b12a80d6ce2f846f757004dff87d5...
---
diff --git a/doc/stylesheets/dbschema_k/xsl/sql.xsl b/doc/stylesheets/dbschema_k/xsl/sql.xsl index ba55a5e..fb7f069 100644 --- a/doc/stylesheets/dbschema_k/xsl/sql.xsl +++ b/doc/stylesheets/dbschema_k/xsl/sql.xsl @@ -51,9 +51,6 @@ <xsl:call-template name="get-name"/> </xsl:variable>
- <!-- Create row in version table --> - <xsl:apply-templates select="version"/> - xsl:textCREATE TABLE </xsl:text> <xsl:call-template name="quotechar"/> <xsl:value-of select="$table.name"/> @@ -73,11 +70,16 @@
<xsl:call-template name="table.close"/>
+ <!-- Create indexes for table --> <xsl:for-each select="index[count(child::unique)=0]"> <xsl:if test="not(child::primary)"> <xsl:call-template name="create_index"/> </xsl:if> </xsl:for-each> + <!-- Create row in version table --> + <xsl:apply-templates select="version"/> + xsl:text
</xsl:text> + </xsl:template>
<!-- ################ /TABLE ################ -->