db.changelogs.base.changelog.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connector-persistence Show documentation
Show all versions of connector-persistence Show documentation
A persistence layer for Interledger Connectors.
<?xml version="1.0" encoding="UTF-8"?> <databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> <changeSet author="dfuelling" id="create initial tables"> <createTable tableName="ACCOUNT_SETTINGS"> <column autoIncrement="true" name="ID" type="BIGINT"> <constraints nullable="false" primaryKey="true"/> </column> <column name="ACCOUNT_ID" type="VARCHAR(64)"> <constraints nullable="false" unique="true"/> </column> <column name="CREATED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="MODIFIED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="VERSION" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="DESCRIPTION" type="VARCHAR(255)"> <constraints nullable="true"/> </column> <column name="INTERNAL" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <column name="CONNECTION_INITIATOR" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <!-- Purposefully smaller than 1024 to allow for long values with a long prefix --> <column name="ILP_ADDR_SEGMENT" type="VARCHAR(512)"> <constraints nullable="true"/> </column> <column name="ACCOUNT_RELATIONSHIP" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="LINK_TYPE" type="VARCHAR(255)"> <constraints nullable="false"/> </column> <column name="ASSET_CODE" type="VARCHAR(20)"> <constraints nullable="false"/> </column> <column name="ASSET_SCALE" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="SEND_ROUTES" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <column name="RECEIVE_ROUTES" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <column name="MAX_PACKET_AMT" type="BIGINT"> <constraints nullable="true"/> </column> <column name="CUSTOM_SETTINGS" type="VARCHAR(8196)"> <constraints nullable="true"/> </column> <!-- AccountBalanceSettingsEntity--> <column name="MIN_BALANCE" type="BIGINT"> <constraints nullable="true"/> </column> <column name="SETTLE_THRESHOLD" type="BIGINT"> <constraints nullable="true"/> </column> <column name="SETTLE_TO" type="BIGINT"> <constraints nullable="true"/> </column> <!-- AccountRateLimitSettingsEntity--> <column name="MAX_PACKETS_PER_SEC" type="BIGINT"> <constraints nullable="true"/> </column> <!-- SettlementEngineDetails--> <column name="SE_ACCOUNT_ID" type="VARCHAR(255)"> <constraints nullable="true" unique="true"/> </column> <column name="SE_BASE_URL" type="VARCHAR(2048)"> <constraints nullable="true"/> </column> <column name="SE_CUSTOM_SETTINGS" type="VARCHAR(8196)"> <constraints nullable="true"/> </column> </createTable> </changeSet> <changeSet author="dfuelling" id="hibernate_sequence"> <createSequence incrementBy="1" sequenceName="hibernate_sequence" startValue="1"/> </changeSet> <changeSet author="isimpson" id="static_routes"> <createTable tableName="STATIC_ROUTES"> <column autoIncrement="true" name="ID" type="BIGINT"> <constraints nullable="false" primaryKey="true"/> </column> <column name="ADDRESS_PREFIX" type="VARCHAR(255)"> <constraints nullable="false" unique="true"/> </column> <column name="CREATED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="MODIFIED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="VERSION" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="ACCOUNT_ID" type="VARCHAR(64)"> <constraints nullable="false"/> </column> </createTable> <createIndex indexName="STATIC_ROUTES_PREFIX_IDX" tableName="STATIC_ROUTES" unique="true"> <column name="ADDRESS_PREFIX"/> </createIndex> </changeSet> <changeSet id="fx_rate_overrides" author="isimpson"> <createTable tableName="fx_rate_overrides"> <column autoIncrement="true" name="ID" type="BIGINT"> <constraints nullable="false" primaryKey="true"/> </column> <column name="ASSET_CODE_KEY" type="VARCHAR(25)"> <constraints nullable="false" unique="true"/> </column> <column name="CREATED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="MODIFIED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="VERSION" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="ASSET_CODE_FROM" type="VARCHAR(20)"> <constraints nullable="false"/> </column> <column name="ASSET_CODE_TO" type="VARCHAR(20)"> <constraints nullable="false"/> </column> <column name="RATE" type="DECIMAL"> <constraints nullable="false"/> </column> </createTable> </changeSet> <changeSet id="deleted_account_settings" author="isimpson"> <createTable tableName="DELETED_ACCOUNT_SETTINGS"> <column autoIncrement="true" name="ID" type="BIGINT"> <constraints nullable="false" primaryKey="true"/> </column> <column name="ACCOUNT_ID" type="VARCHAR(64)"> <constraints nullable="false"/> </column> <column name="CREATED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="MODIFIED_DTTM" type="DATETIME"> <constraints nullable="false"/> </column> <column name="VERSION" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="DESCRIPTION" type="VARCHAR(255)"> <constraints nullable="true"/> </column> <column name="INTERNAL" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <column name="CONNECTION_INITIATOR" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <!-- Purposefully smaller than 1024 to allow for long values with a long prefix --> <column name="ILP_ADDR_SEGMENT" type="VARCHAR(512)"> <constraints nullable="true"/> </column> <column name="ACCOUNT_RELATIONSHIP" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="LINK_TYPE" type="VARCHAR(255)"> <constraints nullable="false"/> </column> <column name="ASSET_CODE" type="VARCHAR(20)"> <constraints nullable="false"/> </column> <column name="ASSET_SCALE" type="SMALLINT"> <constraints nullable="false"/> </column> <column name="SEND_ROUTES" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <column name="RECEIVE_ROUTES" type="BOOLEAN" defaultValueBoolean="false"> <constraints nullable="false"/> </column> <column name="MAX_PACKET_AMT" type="BIGINT"> <constraints nullable="true"/> </column> <column name="CUSTOM_SETTINGS" type="VARCHAR(8196)"> <constraints nullable="true"/> </column> <!-- AccountBalanceSettingsEntity--> <column name="MIN_BALANCE" type="BIGINT"> <constraints nullable="true"/> </column> <column name="SETTLE_THRESHOLD" type="BIGINT"> <constraints nullable="true"/> </column> <column name="SETTLE_TO" type="BIGINT"> <constraints nullable="true"/> </column> <!-- AccountRateLimitSettingsEntity--> <column name="MAX_PACKETS_PER_SEC" type="BIGINT"> <constraints nullable="true"/> </column> <!-- SettlementEngineDetails--> <column name="SE_ACCOUNT_ID" type="VARCHAR(255)"> <constraints nullable="true"/> </column> <column name="SE_BASE_URL" type="VARCHAR(2048)"> <constraints nullable="true"/> </column> <column name="SE_CUSTOM_SETTINGS" type="VARCHAR(8196)"> <constraints nullable="true"/> </column> </createTable> </changeSet> </databaseChangeLog>