-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses maven filtering to replace values in liquibase.properties
- Loading branch information
1 parent
efc9e08
commit 6b70d08
Showing
7 changed files
with
123 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/resources/db/changelog-dev/2020-06-22T05:48:08Z_changelog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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.9.xsd"> | ||
<changeSet author="jaddap2 (generated)" id="1592804892005-1"> | ||
<createTable tableName="country"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="countryPK"/> | ||
</column> | ||
<column name="code" type="VARCHAR(255)"/> | ||
<column name="iso_code" type="VARCHAR(255)"/> | ||
<column name="iso_code_test" type="VARCHAR(255)"/> | ||
<column name="name" type="VARCHAR(255)"/> | ||
<column name="region_id" type="BIGINT"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592804892005-2"> | ||
<createTable tableName="region"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="regionPK"/> | ||
</column> | ||
<column name="name" type="VARCHAR(255)"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592804892005-3"> | ||
<addForeignKeyConstraint baseColumnNames="region_id" baseTableName="country" constraintName="FKs3bda8801uhqtttuaur9r6eic" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="region" validate="true"/> | ||
</changeSet> | ||
</databaseChangeLog> |
28 changes: 28 additions & 0 deletions
28
src/main/resources/db/changelog-dev/2020-06-22T06:00:16Z_changelog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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.9.xsd"> | ||
<changeSet author="jaddap2 (generated)" id="1592805619445-1"> | ||
<createTable tableName="country"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="countryPK"/> | ||
</column> | ||
<column name="code" type="VARCHAR(255)"/> | ||
<column name="iso_code" type="VARCHAR(255)"/> | ||
<column name="iso_code_test" type="VARCHAR(255)"/> | ||
<column name="name" type="VARCHAR(255)"/> | ||
<column name="region_id" type="BIGINT"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592805619445-2"> | ||
<createTable tableName="region"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="regionPK"/> | ||
</column> | ||
<column name="name" type="VARCHAR(255)"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592805619445-3"> | ||
<addForeignKeyConstraint baseColumnNames="region_id" baseTableName="country" constraintName="FKs3bda8801uhqtttuaur9r6eic" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="region" validate="true"/> | ||
</changeSet> | ||
</databaseChangeLog> |
28 changes: 28 additions & 0 deletions
28
src/main/resources/db/changelog-prod/2020-06-22T05:50:03Z_changelog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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.9.xsd"> | ||
<changeSet author="jaddap2 (generated)" id="1592805006064-1"> | ||
<createTable tableName="country"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="countryPK"/> | ||
</column> | ||
<column name="code" type="VARCHAR(255)"/> | ||
<column name="iso_code" type="VARCHAR(255)"/> | ||
<column name="iso_code_test" type="VARCHAR(255)"/> | ||
<column name="name" type="VARCHAR(255)"/> | ||
<column name="region_id" type="BIGINT"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592805006064-2"> | ||
<createTable tableName="region"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="regionPK"/> | ||
</column> | ||
<column name="name" type="VARCHAR(255)"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592805006064-3"> | ||
<addForeignKeyConstraint baseColumnNames="region_id" baseTableName="country" constraintName="FKs3bda8801uhqtttuaur9r6eic" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="region" validate="true"/> | ||
</changeSet> | ||
</databaseChangeLog> |
28 changes: 28 additions & 0 deletions
28
src/main/resources/db/changelog-test/2020-06-22T05:49:14Z_changelog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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.9.xsd"> | ||
<changeSet author="jaddap2 (generated)" id="1592804958248-1"> | ||
<createTable tableName="country"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="countryPK"/> | ||
</column> | ||
<column name="code" type="VARCHAR(255)"/> | ||
<column name="iso_code" type="VARCHAR(255)"/> | ||
<column name="iso_code_test" type="VARCHAR(255)"/> | ||
<column name="name" type="VARCHAR(255)"/> | ||
<column name="region_id" type="BIGINT"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592804958248-2"> | ||
<createTable tableName="region"> | ||
<column autoIncrement="true" name="id" type="BIGINT"> | ||
<constraints nullable="false" primaryKey="true" primaryKeyName="regionPK"/> | ||
</column> | ||
<column name="name" type="VARCHAR(255)"/> | ||
</createTable> | ||
</changeSet> | ||
<changeSet author="jaddap2 (generated)" id="1592804958248-3"> | ||
<addForeignKeyConstraint baseColumnNames="region_id" baseTableName="country" constraintName="FKs3bda8801uhqtttuaur9r6eic" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="region" validate="true"/> | ||
</changeSet> | ||
</databaseChangeLog> |
4 changes: 0 additions & 4 deletions
4
src/main/resources/db/changelog/2020-06-22T02:12:46Z_changelog.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#url=jdbc:mysql://localhost:3306/liquibasedemo-dev?serverTimezone=UTC | ||
#username=root | ||
#password=bcmc1234 | ||
url=${liquibase.url} | ||
username=${liquibase.username} | ||
password=${liquibase.password} | ||
driver=com.mysql.cj.jdbc.Driver | ||
referenceUrl=hibernate:spring:com.pj.liquibasedemo.domain?dialect=org.hibernate.dialect.MySQL8Dialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy |