Skip to content

Commit

Permalink
(*) 将sqlcmd的错误参数设置上
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang committed Dec 22, 2015
1 parent 2ab2ff0 commit 50cae3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions freesun/upgrade/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Database() {

var backup = function (flow) {
var sqlCmd = flow.project.sqlCmd,
backupOptions = extend({}, sqlCmd.loginTemplate, sqlCmd.queryTemplate),
backupOptions = extend({}, sqlCmd.loginTemplate, sqlCmd.queryTemplate, sqlCmd.errorTemplate),
deferred = Q.defer(),
targetFile = sqlCmd.backupDBFile,
flowStep,
Expand Down Expand Up @@ -56,7 +56,7 @@ Database.backup = backup;

var restore = function (flow, check) {
var sqlCmd = flow.project.sqlCmd,
restoreOptions = extend({}, sqlCmd.loginTemplate, sqlCmd.queryTemplate),
restoreOptions = extend({}, sqlCmd.loginTemplate, sqlCmd.queryTemplate, sqlCmd.errorTemplate),
deferred = Q.defer(),
flowStep,
stepLog,
Expand Down Expand Up @@ -144,7 +144,7 @@ var executeSqls = function (flow) {
DATA = 'data',
flowStep,
stepLog,
executeOptions = extend({}, sqlCmd.loginTemplate, sqlCmd.ioTemplate),
executeOptions = extend({}, sqlCmd.loginTemplate, sqlCmd.ioTemplate, sqlCmd.errorTemplate),
sqlSchemaFiles,
sqlDataFiles,
sqlFiles = [];
Expand Down

0 comments on commit 50cae3f

Please sign in to comment.