add member_share and member_asset tables

This commit is contained in:
Peter Hormanns 2017-04-09 15:23:35 +02:00
parent 572c128081
commit 6ad12420de

View File

@ -724,4 +724,32 @@
<changeSet author="HSDB" id="generated-101"> <changeSet author="HSDB" id="generated-101">
<addForeignKeyConstraint baseColumnNames="user_id" baseTableName="queue" constraintName="queue_user_id_fkey" deferrable="true" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="unixuser_id" referencedTableName="unixuser"/> <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="queue" constraintName="queue_user_id_fkey" deferrable="true" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="unixuser_id" referencedTableName="unixuser"/>
</changeSet> </changeSet>
<changeSet author="phormanns" id="ph-20170409-01">
<createTable tableName="member_share">
<column autoIncrement="true" name="member_share_id" type="SERIAL">
<constraints primaryKey="true" primaryKeyName="pk_member_share"/>
</column>
<column name="bp_id" type="INT">
<constraints nullable="false"/>
</column>
<column name="date" type="date"/>
<column name="action" type="VARCHAR(60)"/>
<column name="quantity" type="INT"/>
<column name="comment" type="VARCHAR(160)"/>
</createTable>
<createTable tableName="member_asset">
<column autoIncrement="true" name="member_asset_id" type="SERIAL">
<constraints primaryKey="true" primaryKeyName="pk_member_asset"/>
</column>
<column name="bp_id" type="INT">
<constraints nullable="false"/>
</column>
<column name="date" type="date"/>
<column name="action" type="VARCHAR(60)"/>
<column name="amount" type="MONEY"/>
<column name="comment" type="VARCHAR(160)"/>
</createTable>
</changeSet>
</databaseChangeLog> </databaseChangeLog>