|
|
@@ -11,7 +11,7 @@ exports.delete = function(serverId){
|
|
|
};
|
|
|
|
|
|
exports.insert = function(branchs){
|
|
|
- return seq.query('insert branchs(id, parentId, branchName, position, serverId, branchId, displayLevel, inherit) ' +
|
|
|
+ return seq.query('insert branchs(id, parentId, branchName, position, serverId, branchId, displayLevel, inherit, branchType) ' +
|
|
|
'values(:id,'+
|
|
|
':parentId,'+
|
|
|
':branchName,'+
|
|
|
@@ -19,7 +19,8 @@ exports.insert = function(branchs){
|
|
|
':serverId,'+
|
|
|
':branchId,'+
|
|
|
':displayLevel,'+
|
|
|
- ':inherit)',
|
|
|
+ ':inherit,'+
|
|
|
+ ':branchType)',
|
|
|
{
|
|
|
replacements:branchs,
|
|
|
type:seq.QueryTypes.INSERT
|