All Downloads are FREE. Search and download functionalities are using the official Maven repository.

IAF_Util.IAF_DatabaseChangelog.xml Maven / Gradle / Ivy

The newest version!
<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-4.8.xsd">

<!-- When using one of the following commands, a rollback script is not required
AddColumn
AddDefaultValue
AddForeignKeyConstraint
AddLookupTable
AddNotNullConstraint
AddPrimaryKey
AddUniqueConstraint
CreateIndex
CreateSequence
CreateTable
CreateView
DropNotNullConstraint
RenameColumn
RenameTable
RenameView
TagDatabase
 -->

	<changeSet id="IAF_Util:1" author="Niels Meijer">
		<validCheckSum>7:4a9c70190e4678c16c7d392b8ecff571</validCheckSum> <!-- #1481, BLOB->LONGBLOB -->
		<comment>Add IBISSTORE Table</comment>
		<createTable tableName="IBISSTORE">
			<column name="MESSAGEKEY" type="BIGINT" autoIncrement="true">
				<constraints primaryKey="true" nullable="false" primaryKeyName="PK_IBISSTORE"/>
			</column>
			<column name="TYPE" type="java.sql.Types.CHAR(1)"/>
			<column name="SLOTID" type="java.sql.Types.VARCHAR(100)"/>
			<column name="HOST" type="java.sql.Types.VARCHAR(100)"/>
			<column name="MESSAGEID" type="java.sql.Types.VARCHAR(100)"/>
			<column name="CORRELATIONID" type="java.sql.Types.VARCHAR(256)"/>
			<column name="MESSAGEDATE" type="DATETIME"/>
			<column name="COMMENTS" type="java.sql.Types.VARCHAR(1000)"/>
			<column name="MESSAGE" type="LONGBLOB"/> <!-- LONGBLOB required for MySQL and MariaDB, compatible with BLOB for other dbmses -->
			<column name="EXPIRYDATE" type="DATETIME"/>
			<column name="LABEL" type="java.sql.Types.VARCHAR(100)"/>
		</createTable>
		<createIndex tableName="IBISSTORE" indexName="IX_IBISSTORE">
			<column name="TYPE"/>
			<column name="SLOTID"/>
			<column name="MESSAGEDATE"/>
		</createIndex>
		<createIndex tableName="IBISSTORE" indexName="IX_IBISSTORE_02">
			<column name="EXPIRYDATE"/>
		</createIndex>
	</changeSet>

	<changeSet id="IAF_Util:1b" author="Gerrit van Brakel">
		<comment>Additional index to support duplicate checks</comment>
		<createIndex tableName="IBISSTORE" indexName="IX_IBISSTORE_03">
			<column name="SLOTID"/>
			<column name="MESSAGEID"/>
		</createIndex>
	</changeSet>

	<changeSet id="IAF_Util:2" author="Niels Meijer" onValidationFail="MARK_RAN">
		<validCheckSum>7:f2e6c27a19d68a25b1944853432979c4</validCheckSum>
		<comment>Set sequence for IBISSTORE Table</comment>
		<createSequence sequenceName="SEQ_IBISSTORE" startValue="161332"/>
	</changeSet>

	<changeSet id="IAF_Util:3" author="Niels Meijer">
		<comment>Add IBISLOCK Table</comment>
		<createTable tableName="IBISLOCK">
			<column name="OBJECTID" type="java.sql.Types.VARCHAR(100)">
				<constraints primaryKey="true" nullable="false" primaryKeyName="PK_IBISLOCK"/>
			</column>
			<column name="TYPE" type="java.sql.Types.CHAR(1)"/>
			<column name="HOST" type="java.sql.Types.VARCHAR(100)"/>
			<column name="CREATIONDATE" type="DATETIME"/>
			<column name="EXPIRYDATE" type="DATETIME"/>
		</createTable>
	</changeSet>

	<changeSet id="IAF_Util:4" author="Niels Meijer">
		<comment>Add IBISPROP Table</comment>
		<createTable tableName="IBISPROP">
			<column name="NAME" type="java.sql.Types.VARCHAR(100)">
				<constraints primaryKey="true" nullable="false" primaryKeyName="PK_IBISPROP"/>
			</column>
			<column name="VALUE" type="java.sql.Types.VARCHAR(100)"/>
			<column name="LASTMODDATE" type="DATETIME"/>
			<column name="LASTMODBY" type="java.sql.Types.VARCHAR(32)"/>
		</createTable>
	</changeSet>

	<changeSet id="IAF_Util:5" author="Niels Meijer">
		<validCheckSum>7:85bdc937b35ee7e69753df403f970e82</validCheckSum> <!-- #1481, BLOB->LONGBLOB -->
		<comment>Add IBISCONFIG Table</comment>
		<createTable tableName="IBISCONFIG">
			<column name="NAME" type="java.sql.Types.VARCHAR(100)">
				<constraints nullable="false"/>
			</column>
			<column name="VERSION" type="java.sql.Types.VARCHAR(50)">
				<constraints nullable="false"/>
			</column>
			<column name="FILENAME" type="java.sql.Types.VARCHAR(150)"/>
			<column name="CONFIG" type="LONGBLOB"/> <!-- LONGBLOB required for MySQL and MariaDB, compatible with BLOB for other dbmses -->
			<column name="CRE_TYDST" type="DATETIME"/>
			<column name="RUSER" type="java.sql.Types.VARCHAR(32)"/>
			<column name="ACTIVECONFIG" type="BOOLEAN"/>
			<column name="AUTORELOAD" type="BOOLEAN"/>
		</createTable>
		<addPrimaryKey tableName="IBISCONFIG" columnNames="NAME, VERSION" constraintName="PK_IBISCONFIG"/>
	</changeSet>

	<changeSet id="IAF_Util:6" author="Niels Meijer">
		<comment>Add IBISSCHEDULES Table</comment>
		<createTable tableName="IBISSCHEDULES">
			<column name="JOBNAME" type="java.sql.Types.VARCHAR(256)">
				<constraints nullable="false"/>
			</column>
			<column name="JOBGROUP" type="java.sql.Types.VARCHAR(256)">
				<constraints nullable="false"/>
			</column>
			<column name="ADAPTER" type="java.sql.Types.VARCHAR(256)">
				<constraints nullable="false"/>
			</column>
			<column name="RECEIVER" type="java.sql.Types.VARCHAR(256)">
				<constraints nullable="false"/>
			</column>
			<column name="CRON" type="java.sql.Types.VARCHAR(100)"/>
			<column name="EXECUTIONINTERVAL" type="INTEGER"/>
			<column name="MESSAGE" type="CLOB"/>
			<column name="LOCKER" type="BOOLEAN" defaultValueBoolean="false">
				<constraints nullable="false"/>
			</column>
			<column name="LOCK_KEY" type="java.sql.Types.VARCHAR(100)"/>
			<column name="CREATED_ON" type="DATETIME"/>
			<column name="BY_USER" type="java.sql.Types.VARCHAR(32)"/>
		</createTable>
		<!-- in Quartz the JobKey is defined by name and group, hence this being the primary key constraint in the database as well -->
		<addPrimaryKey tableName="IBISSCHEDULES" columnNames="JOBNAME, JOBGROUP" constraintName="PK_IBISSCHEDULES"/>
	</changeSet>

	<changeSet id="IAF_Util:7" author="Ali Sihab Akcan">
		<validCheckSum>8:97b29783dae30e2edd2c2a80341b9ad4</validCheckSum><!-- #3513, afterColumn is database specific -->
		<comment>Add description column to IBISSCHEDULES Table</comment>
		<addColumn tableName="IBISSCHEDULES">
			<column name="DESCRIPTION"  type="java.sql.Types.VARCHAR(255)"/>
		</addColumn>
	</changeSet>

</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy