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_ACL_DS">
			<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="DELETEALLOWED" type="int(1)">
				<constraints nullable="false" /></column>	 
			<column name="DSNAME" type="varchar(255)">
				<constraints nullable="false" /></column>	 
			<column name="EXPORTALLOWED" type="int(1)">
				<constraints nullable="false" /></column>	 
			<column name="ID" type="bigint(19)">
				<constraints nullable="false" /></column>	 
			<column name="IMPORTALLOWED" type="int(1)">
				<constraints nullable="false" /></column>	 
			<column name="INSERTALLOWED" type="int(1)">
				<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="QUERYALLOWED" type="int(1)">
				<constraints nullable="false" /></column>	 
			<column name="UPDATEALLOWED" type="int(1)">
				<constraints nullable="false" /></column>	 
			<column name="UUID" type="varchar(36)">
				<constraints  /></column>	 
			<column name="VERSION" type="bigint(19)">
				<constraints nullable="false" /></column>	 
			<column name="ACCESSCONTROL_ID" type="bigint(19)">	 
				<constraints nullable="false" /></column>	 
        </createTable>
    </changeSet>    
    <changeSet author="amathe" id="PK">
    	<addPrimaryKey tableName="AD_ACL_DS" constraintName="PK_AD_ACL_DS" columnNames="ID" />
    </changeSet>       
	<changeSet author="amathe" id="UK-1">
		<addUniqueConstraint tableName="AD_ACL_DS" constraintName="UK_AD_ACL_DS1" columnNames="CLIENTID, ACCESSCONTROL_ID,DSNAME" />
	</changeSet>
	<changeSet author="amathe" id="SEQ">
		<insert tableName="SEQUENCE">
		    <column name="SEQ_NAME" value="AD_ACL_DS_SEQ"/>
		    <column name="SEQ_COUNT" valueNumeric="0"/>
		</insert>
	</changeSet>
</databaseChangeLog>
New to GrepCode? Check out our FAQ X