Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[risk=no] upgrading liquibase version #1271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions public-api/db-cdr/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.liquibase:liquibase-gradle-plugin:1.2.4'
classpath 'mysql:mysql-connector-java:5.1.37'
}
plugins {
id 'application'
id 'org.liquibase.gradle' version '2.1.1'
}

repositories {
mavenCentral()
}
apply plugin: 'org.liquibase.gradle'
apply plugin: 'application'

def db_host = System.getenv("DB_HOST") ?: "db"
def db_port = System.getenv("DB_PORT") ?: "3306"
def db_name = System.getenv("CDR_DB_NAME") ?: "cdr"
def liquibase_password = System.getenv("LIQUIBASE_DB_PASSWORD") ?: "lb-notasecret"
applicationDefaultJvmArgs = ["-Xmx2048m","-Xms2048m"]

dependencies {
liquibaseRuntime 'org.liquibase:liquibase-core:4.16.1'
liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:3.0.2'
liquibaseRuntime 'info.picocli:picocli:4.6.1'
liquibaseRuntime 'mysql:mysql-connector-java:5.1.37'
liquibaseRuntime group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
}

liquibase {
activities {
schema {
Expand Down
2 changes: 1 addition & 1 deletion public-api/db-cdr/changelog-schema/db.changelog-19.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<changeSet author="srushtigangireddy" id="add domain_id pk" runAlways="true">
<validCheckSum>ANY</validCheckSum> <preConditions onFail="MARK_RAN"> <not>
<primaryKeyExists /> </not> </preConditions>
<primaryKeyExists tableName="domain_info"/> </not> </preConditions>
<addPrimaryKey tableName="domain_info" columnNames="domain_id"/>
</changeSet>

Expand Down
7 changes: 4 additions & 3 deletions public-api/db/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

plugins {
id 'org.liquibase.gradle' version '2.1.0'
id 'org.liquibase.gradle' version '2.1.1'
}

repositories {
Expand All @@ -11,8 +12,8 @@ def db_port = System.getenv("DB_PORT") ?: "3306"
def liquibase_password = System.getenv("LIQUIBASE_DB_PASSWORD") ?: "lb-notasecret"

dependencies {
liquibaseRuntime 'org.liquibase:liquibase-core:3.10.0'
liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:3.0.0'
liquibaseRuntime 'org.liquibase:liquibase-core:4.16.1'
liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:3.0.2'
liquibaseRuntime 'info.picocli:picocli:4.6.1'
liquibaseRuntime 'mysql:mysql-connector-java:5.1.34'
liquibaseRuntime group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
Expand Down