Merge pull request #253 from devshell/devshell-patch-BIGSERIAL

Change Serial to Big Serial for IDs
This commit is contained in:
Ondřej Žára
2017-04-13 07:15:15 +02:00
committed by GitHub
+2 -2
View File
@@ -37,13 +37,13 @@
<xsl:choose> <xsl:choose>
<xsl:when test="@autoincrement = 1"> <xsl:when test="@autoincrement = 1">
<!-- use postgresql SERIAL shortcut for columns marked as <!-- use postgresql BIGSERIAL shortcut for columns marked as
auto-increment. this creates integer column, auto-increment. this creates integer column,
corresponding sequence, and default expression for the corresponding sequence, and default expression for the
column with nextval(). see: column with nextval(). see:
http://www.postgresql.org/docs/current/static/datatype-numeric.html#DATATYPE-SERIAL http://www.postgresql.org/docs/current/static/datatype-numeric.html#DATATYPE-SERIAL
--> -->
<xsl:text>SERIAL</xsl:text> <xsl:text>BIGSERIAL</xsl:text>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="datatype" /> <xsl:value-of select="datatype" />