Merge branch 'jhipster-generated'
This commit is contained in:
@ -16,16 +16,16 @@
|
||||
<!--
|
||||
Added the entity Customer.
|
||||
-->
|
||||
<changeSet id="20190418073043-1" author="jhipster">
|
||||
<changeSet id="20190403083735-1" author="jhipster">
|
||||
<createTable tableName="customer">
|
||||
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="jhi_number" type="integer">
|
||||
<constraints nullable="false" unique="true" uniqueConstraintName="ux_customer_jhi_number" />
|
||||
<column name="reference" type="integer">
|
||||
<constraints nullable="false" unique="true" uniqueConstraintName="ux_customer_reference" />
|
||||
</column>
|
||||
|
||||
<column name="prefix" type="varchar(255)">
|
||||
<column name="prefix" type="varchar(3)">
|
||||
<constraints nullable="false" unique="true" uniqueConstraintName="ux_customer_prefix" />
|
||||
</column>
|
||||
|
||||
@ -49,6 +49,10 @@
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="remark" type="varchar(160)">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
|
||||
</createTable>
|
||||
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<property name="now" value="now()" dbms="h2"/>
|
||||
|
||||
@ -14,20 +16,24 @@
|
||||
<!--
|
||||
Added the entity Membership.
|
||||
-->
|
||||
<changeSet id="20190418073044-1" author="jhipster">
|
||||
<changeSet id="20190403083738-1" author="jhipster">
|
||||
<createTable tableName="membership">
|
||||
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="jhi_from" type="date">
|
||||
<column name="document_date" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="jhi_to" type="date">
|
||||
<column name="member_from" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="member_until" type="date">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="jhi_comment" type="varchar(160)">
|
||||
<column name="remark" type="varchar(160)">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
@ -39,6 +45,5 @@
|
||||
</createTable>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
|
||||
</databaseChangeLog>
|
||||
|
@ -21,7 +21,11 @@
|
||||
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="jhi_date" type="date">
|
||||
<column name="document_date" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="value_date" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
@ -33,7 +37,7 @@
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="jhi_comment" type="varchar(160)">
|
||||
<column name="remark" type="varchar(160)">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
|
@ -21,7 +21,11 @@
|
||||
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="jhi_date" type="date">
|
||||
<column name="document_date" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="value_date" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
@ -33,7 +37,7 @@
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="jhi_comment" type="varchar(160)">
|
||||
<column name="remark" type="varchar(160)">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
|
@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<property name="now" value="now()" dbms="h2"/>
|
||||
|
||||
<property name="now" value="current_timestamp" dbms="postgresql"/>
|
||||
|
||||
<property name="floatType" value="float4" dbms="postgresql, h2"/>
|
||||
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
|
||||
|
||||
<!--
|
||||
Added the entity SepaMandate.
|
||||
-->
|
||||
<changeSet id="20190418100951-1" author="jhipster">
|
||||
<createTable tableName="sepa_mandate">
|
||||
<column name="id" type="bigint" autoIncrement="${autoIncrement}">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="reference" type="varchar(40)">
|
||||
<constraints nullable="false" unique="true" uniqueConstraintName="ux_sepa_mandate_reference" />
|
||||
</column>
|
||||
|
||||
<column name="iban" type="varchar(34)">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="bic" type="varchar(11)">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="document_date" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="valid_from" type="date">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<column name="valid_until" type="date">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="last_used" type="date">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="cancellation_date" type="date">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="remark" type="varchar(160)">
|
||||
<constraints nullable="true" />
|
||||
</column>
|
||||
|
||||
<column name="customer_id" type="bigint">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
|
||||
<!-- jhipster-needle-liquibase-add-column - JHipster will add columns here, do not remove-->
|
||||
</createTable>
|
||||
|
||||
</changeSet>
|
||||
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
|
||||
</databaseChangeLog>
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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-3.5.xsd">
|
||||
<!--
|
||||
Added the constraints for entity SepaMandate.
|
||||
-->
|
||||
<changeSet id="20190418100951-2" author="jhipster">
|
||||
|
||||
<addForeignKeyConstraint baseColumnNames="customer_id"
|
||||
baseTableName="sepa_mandate"
|
||||
constraintName="fk_sepa_mandate_customer_id"
|
||||
referencedColumnNames="id"
|
||||
referencedTableName="customer"/>
|
||||
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
@ -5,16 +5,19 @@
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
|
||||
|
||||
<include file="config/liquibase/changelog/00000000000000_initial_schema.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073043_added_entity_Customer.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073044_added_entity_Membership.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073045_added_entity_Share.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073046_added_entity_Asset.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073047_added_entity_SepaMandate.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083735_added_entity_Customer.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083736_added_entity_Contact.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083737_added_entity_CustomerContact.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083738_added_entity_Membership.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083739_added_entity_Share.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083740_added_entity_Asset.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418100951_added_entity_SepaMandate.xml" relativeToChangelogFile="false"/>
|
||||
<!-- jhipster-needle-liquibase-add-changelog - JHipster will add liquibase changelogs here -->
|
||||
<include file="config/liquibase/changelog/20190418073044_added_entity_constraints_Membership.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073045_added_entity_constraints_Share.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073046_added_entity_constraints_Asset.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418073047_added_entity_constraints_SepaMandate.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083737_added_entity_constraints_CustomerContact.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083738_added_entity_constraints_Membership.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083739_added_entity_constraints_Share.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190403083740_added_entity_constraints_Asset.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190418100951_added_entity_constraints_SepaMandate.xml" relativeToChangelogFile="false"/>
|
||||
<!-- jhipster-needle-liquibase-add-constraints-changelog - JHipster will add liquibase constraints changelogs here -->
|
||||
|
||||
<include file="config/liquibase/changelog/sample-data-Customer.xml" relativeToChangelogFile="false"/>
|
||||
|
Reference in New Issue
Block a user