Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
42bba4e1
Commit
42bba4e1
authored
Jul 13, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document Liquibase default values
Closes gh-13765
parent
c59f3121
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
LiquibaseProperties.java
...ork/boot/autoconfigure/liquibase/LiquibaseProperties.java
+2
-2
LiquibaseAutoConfigurationTests.java
...oconfigure/liquibase/LiquibaseAutoConfigurationTests.java
+16
-0
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+2
-2
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseProperties.java
View file @
42bba4e1
...
@@ -66,12 +66,12 @@ public class LiquibaseProperties {
...
@@ -66,12 +66,12 @@ public class LiquibaseProperties {
/**
/**
* Name of table to use for tracking change history.
* Name of table to use for tracking change history.
*/
*/
private
String
databaseChangeLogTable
;
private
String
databaseChangeLogTable
=
"DATABASECHANGELOG"
;
/**
/**
* Name of table to use for tracking concurrent Liquibase usage.
* Name of table to use for tracking concurrent Liquibase usage.
*/
*/
private
String
databaseChangeLogLockTable
;
private
String
databaseChangeLogLockTable
=
"DATABASECHANGELOGLOCK"
;
/**
/**
* Whether to first drop the database schema.
* Whether to first drop the database schema.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfigurationTests.java
View file @
42bba4e1
...
@@ -127,6 +127,22 @@ public class LiquibaseAutoConfigurationTests {
...
@@ -127,6 +127,22 @@ public class LiquibaseAutoConfigurationTests {
.
isEqualTo
(
"classpath:/db/changelog/db.changelog-override.sql"
)));
.
isEqualTo
(
"classpath:/db/changelog/db.changelog-override.sql"
)));
}
}
@Test
public
void
defaultValues
()
{
this
.
contextRunner
.
withUserConfiguration
(
EmbeddedDataSourceConfiguration
.
class
)
.
run
(
assertLiquibase
((
liquibase
)
->
{
LiquibaseProperties
properties
=
new
LiquibaseProperties
();
assertThat
(
liquibase
.
getDatabaseChangeLogTable
())
.
isEqualTo
(
properties
.
getDatabaseChangeLogTable
());
assertThat
(
liquibase
.
getDatabaseChangeLogLockTable
())
.
isEqualTo
(
properties
.
getDatabaseChangeLogLockTable
());
assertThat
(
liquibase
.
isDropFirst
())
.
isEqualTo
(
properties
.
isDropFirst
());
assertThat
(
liquibase
.
isTestRollbackOnUpdate
())
.
isEqualTo
(
properties
.
isTestRollbackOnUpdate
());
}));
}
@Test
@Test
public
void
overrideContexts
()
{
public
void
overrideContexts
()
{
this
.
contextRunner
.
withUserConfiguration
(
EmbeddedDataSourceConfiguration
.
class
)
this
.
contextRunner
.
withUserConfiguration
(
EmbeddedDataSourceConfiguration
.
class
)
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
42bba4e1
...
@@ -568,8 +568,8 @@ content into your application. Rather, pick only the properties that you need.
...
@@ -568,8 +568,8 @@ content into your application. Rather, pick only the properties that you need.
spring.liquibase.default-schema= # Default database schema.
spring.liquibase.default-schema= # Default database schema.
spring.liquibase.liquibase-schema= # Schema to use for Liquibase objects.
spring.liquibase.liquibase-schema= # Schema to use for Liquibase objects.
spring.liquibase.liquibase-tablespace= # Tablespace to use for Liquibase objects.
spring.liquibase.liquibase-tablespace= # Tablespace to use for Liquibase objects.
spring.liquibase.database-change-log-table= # Name of table to use for tracking change history.
spring.liquibase.database-change-log-table=
DATABASECHANGELOG
# Name of table to use for tracking change history.
spring.liquibase.database-change-log-lock-table= # Name of table to use for tracking concurrent Liquibase usage.
spring.liquibase.database-change-log-lock-table=
DATABASECHANGELOGLOCK
# Name of table to use for tracking concurrent Liquibase usage.
spring.liquibase.drop-first=false # Whether to first drop the database schema.
spring.liquibase.drop-first=false # Whether to first drop the database schema.
spring.liquibase.enabled=true # Whether to enable Liquibase support.
spring.liquibase.enabled=true # Whether to enable Liquibase support.
spring.liquibase.labels= # Comma-separated list of runtime labels to use.
spring.liquibase.labels= # Comma-separated list of runtime labels to use.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment