Skip to content

Commit

Permalink
Changed the default value of ignore_warnings from false to true. #46 #84
Browse files Browse the repository at this point in the history
  • Loading branch information
harawata committed Oct 16, 2017
1 parent 4b905e2 commit 2f38956
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/ibatis/migration/Environment.java
Expand Up @@ -85,7 +85,7 @@ public Environment(File file) {
this.sendFullScript = Boolean.valueOf(prop.getProperty(SETTING_KEY.send_full_script.name()));
this.autoCommit = Boolean.valueOf(prop.getProperty(SETTING_KEY.auto_commit.name()));
this.removeCrs = Boolean.valueOf(prop.getProperty(SETTING_KEY.remove_crs.name()));
this.ignoreWarnings = Boolean.valueOf(prop.getProperty(SETTING_KEY.ignore_warnings.name()));
this.ignoreWarnings = Boolean.valueOf(prop.getProperty(SETTING_KEY.ignore_warnings.name(), "true"));

this.driverPath = prop.getProperty(SETTING_KEY.driver_path.name());
this.driver = prop.getProperty(SETTING_KEY.driver.name());
Expand Down
Expand Up @@ -64,8 +64,8 @@ full_line_delimiter=false
# but some do.
auto_commit=false

# If set to true, warnings from the database do not interrupt migrations.
ignore_warnings=false
# If set to false, warnings from the database will interrupt migrations.
ignore_warnings=true

# Custom driver path to allow you to centralize your driver files
# Default requires the drivers to be in the drivers directory of your
Expand Down
10 changes: 3 additions & 7 deletions src/site/xdoc/init.xml
Expand Up @@ -91,20 +91,16 @@ full_line_delimiter=false
# Use with JDBC drivers that can accept large
# blocks of delimited text at once.
send_full_script=true
# If set to true, warnings from the database
# do not interrupt migrations.
ignore_warnings=false
# If set to false, warnings from the database
# will interrupt migrations.
ignore_warnings=true
# Custom driver path to avoid copying your drivers
# driver_path=]]></source>
<h4>Database specific information</h4>
<h5>MySQL</h5>
<ul>
<li><code>send_full_script</code> must be set to <code>false</code> to execute a script with multiple statements.</li>
</ul>
<h5>PostgreSQL</h5>
<ul>
<li><code>ignore_warnings</code> should be set to <code>true</code> to prevent migrations from being interrupted unexpectedly. See <a href="https://github.com/mybatis/migrations/issues/84">#84</a> for the details.</li>
</ul>
</subsection>

<subsection name="./scripts">
Expand Down

0 comments on commit 2f38956

Please sign in to comment.