same database everywhere

This commit is contained in:
Peter Hormanns 2017-04-12 15:31:53 +02:00
parent d7a4a4f63d
commit 2304ce3f23
3 changed files with 32 additions and 3 deletions

View File

@ -752,4 +752,33 @@
</createTable>
</changeSet>
<changeSet author="phormanns" id="ph-20170412-01">
<createTable tableName="pac_administration">
<column autoIncrement="true" name="pac_administration_id" type="SERIAL">
<constraints primaryKey="true" primaryKeyName="pk_pac_administration"/>
</column>
<column name="contact_id" type="INT">
<constraints
foreignKeyName="pac_administration_contact_ref"
referencedTableName="contact"
referencedColumnNames="contact_id"
nullable="false"/>
</column>
<column name="pac_id" type="INT">
<constraints
foreignKeyName="pac_administration_pac_ref"
referencedTableName="packet"
referencedColumnNames="packet_id"
nullable="false"/>
</column>
</createTable>
<addColumn tableName="contact">
<column name="login" type="VARCHAR(40)"/>
</addColumn>
<addUniqueConstraint
columnNames="login"
constraintName="unique_contact_login"
tableName="contact"/>
</changeSet>
</databaseChangeLog>

View File

@ -1,6 +1,6 @@
changeLogFile=target/classes/liquibase/db.changelog.xml
driver=org.postgresql.Driver
url=jdbc:postgresql://localhost:5432/hsadmin_migdb
url=jdbc:postgresql://localhost:5432/hsadmin_db
username=hsadmin_dbuser
password=SelfDefinedPassword
verbose=true

View File

@ -2,7 +2,7 @@
<tomee>
<Resource id="hsar-ds" type="javax.sql.DataSource">
JdbcDriver = org.postgresql.Driver
JdbcUrl = jdbc:postgresql://localhost:5432/hsadmin_migdb
JdbcUrl = jdbc:postgresql://localhost:5432/hsadmin_db
UserName = hsadmin_dbuser
Password = SelfDefinedPassword
</Resource>