<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
    <changeSet author="sadequl_hussain (generated)" id="1461381558004-1">
        <createTable tableName="AWBuildVersion">
            <column autoIncrement="true" name="SystemInformationID" remarks="Primary key for AWBuildVersion records." type="tinyint">
                <constraints primaryKey="true" primaryKeyName="PK_AWBuildVersion_SystemInformationID"/>
            </column>
            <column name="Database Version" remarks="Version number of the database in 9.yy.mm.dd.00 format." type="nvarchar(25)">
                <constraints nullable="false"/>
            </column>
            <column name="VersionDate" remarks="Date and time the record was last updated." type="datetime">
                <constraints nullable="false"/>
            </column>
            <column defaultValueComputed="getdate()" name="ModifiedDate" remarks="Date and time the record was last updated." type="datetime">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="sadequl_hussain (generated)" id="1461381558004-2">
        <createTable tableName="DatabaseLog">
            <column autoIncrement="true" name="DatabaseLogID" remarks="Primary key for DatabaseLog records." type="int">
                <constraints primaryKey="true" primaryKeyName="PK_DatabaseLog_DatabaseLogID"/>
            </column>
            <column name="PostTime" remarks="The date and time the DDL change occurred." type="datetime">
                <constraints nullable="false"/>
            </column>
            <column name="DatabaseUser" remarks="The user who implemented the DDL change." type="sysname">
                <constraints nullable="false"/>
            </column>
            <column name="Event" remarks="The type of DDL statement that was executed." type="sysname">
                <constraints nullable="false"/>
            </column>
            <column name="Schema" remarks="The schema to which the changed object belongs." type="sysname"/>
            <column name="Object" remarks="The object that was changed by the DDL statment." type="sysname"/>
            <column name="TSQL" remarks="The exact Transact-SQL statement that was executed." type="nvarchar(MAX)">
                <constraints nullable="false"/>
            </column>
            <column name="XmlEvent" remarks="The raw XML data generated by database trigger." type="xml(2147483647)">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
    <changeSet author="sadequl_hussain (generated)" id="1461381558004-3">
        <createTable tableName="ErrorLog">
            <column autoIncrement="true" name="ErrorLogID" remarks="Primary key for ErrorLog records." type="int">
                <constraints primaryKey="true" primaryKeyName="PK_ErrorLog_ErrorLogID"/>
            </column>
            <column defaultValueComputed="getdate()" name="ErrorTime" remarks="The date and time at which the error occurred." type="datetime">
                <constraints nullable="false"/>
            </column>
            <column name="UserName" remarks="The user who executed the batch in which the error occurred." type="sysname">
                <constraints nullable="false"/>
            </column>
            <column name="ErrorNumber" remarks="The error number of the error that occurred." type="int">
                <constraints nullable="false"/>
            </column>
            <column name="ErrorSeverity" remarks="The severity of the error that occurred." type="int"/>
            <column name="ErrorState" remarks="The state number of the error that occurred." type="int"/>
            <column name="ErrorProcedure" remarks="The name of the stored procedure or trigger where the error occurred." type="nvarchar(126)"/>
            <column name="ErrorLine" remarks="The line number at which the error occurred." type="int"/>
            <column name="ErrorMessage" remarks="The message text of the error that occurred." type="nvarchar(4000)">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>
</databaseChangeLog>
