Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">

	<changeSet author="amathe" id="TBL">
        <createTable tableName="AD_SYS_TIMER">
		<column name="ACTIVE" type="int(1)">
			<constraints nullable="false" /></column>
		<column name="CLIENTID" type="bigint(3)">
			<constraints nullable="false" /></column>
		<column name="CREATEDAT" type="datetime">
			<constraints nullable="false" /></column>
		<column name="CREATEDBY" type="varchar(32)">
			<constraints nullable="false" /></column>
		<column name="CRONEXPRESSION" type="text" />
		<column name="DESCRIPTION" type="text" />
		<column name="ENDTIME" type="datetime" />
		<column name="ID" type="bigint(19)">
			<constraints nullable="false" /></column>
		<column name="MODIFIEDAT" type="datetime">
			<constraints nullable="false" /></column>
		<column name="MODIFIEDBY" type="varchar(32)">
			<constraints nullable="false" /></column>
		<column name="NAME" type="varchar(255)">
			<constraints nullable="false" /></column>
		<column name="REPEATCOUNT" type="int(8)" />
		<column name="REPEATINTERVAL" type="int(4)" />
		<column name="REPEATINTERVALTYPE" type="varchar(16)" />
		<column name="STARTTIME" type="datetime">
			<constraints nullable="false" /></column>
		<column name="TYPE" type="varchar(16)">
			<constraints nullable="false" /></column>
		<column name="UUID" type="varchar(36)" />
		<column name="VERSION" type="bigint(19)">
			<constraints nullable="false" /></column>
		<column name="JOBCTX_ID" type="bigint(19)">
			<constraints nullable="false" /></column>
        </createTable>
    </changeSet>

    <changeSet author="amathe" id="PK">
    	<addPrimaryKey tableName="AD_SYS_TIMER" constraintName="PK_AD_SYS_TIMER" columnNames="ID" />
    </changeSet>

	<changeSet author="amathe" id="UK-1">
		<addUniqueConstraint tableName="AD_SYS_TIMER" constraintName="UK_AD_SYS_TIMER1" columnNames="CLIENTID, JOBCTX_ID,NAME" />
	</changeSet>

	<changeSet author="amathe" id="SEQ">
		<insert tableName="SEQUENCE">
		    <column name="SEQ_NAME" value="AD_SYS_TIMER_SEQ"/>
		    <column name="SEQ_COUNT" valueNumeric="0"/>
		</insert>
	</changeSet>
</databaseChangeLog>
New to GrepCode? Check out our FAQ X