Hi
I have rather weird problem when creating a column of type timestamp with code below.
The column in the orders table is created as type datetime, whilst the other is correct (timestamp), can anyone offer any clues as to why it is happening.
Thanks
-
<changeSet author="chromis - John L" id="Create KitchenScr Table">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="ORDERS"/>
</not>
</preConditions><createTable tableName="ORDERS">
<column name="ID" type="varchar(50)" >
<constraints primaryKey="true" nullable="false" />
</column>
<column name="ORDERID" type="varchar(50)"/>
<column name="QTY" type="int" defaultValueNumeric="1"/>
<column name="DETAILS" type="varchar(50)"/>
<column name="ATTRIBUTES" type="varchar(255)"/>
<column name="NOTES" type="varchar(255)"/>
<column name="TICKETID" type="varchar(50)"/>
<column name="ORDERTIME" type="timestamp" defaultValueDate="CURRENT_TIMESTAMP"/>
<column name="DISPLAYID" type="int" defaultValueNumeric="1"/>
</createTable>
</changeSet>
<changeSet author="Chromis - John L" id="Create Draweropened Table">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="DRAWEROPENED"/>
</not>
</preConditions><createTable tableName="DRAWEROPENED">
<column name="OPENDATE" type="timestamp" defaultValueDate="CURRENT_TIMESTAMP"/>
<column name="NAME" type="varchar(255)"/>
<column name="TICKETID" type="varchar(255)"/></createTable>
</changeSet>