Skip to content

Commit

Permalink
Refactor order of arguments in create
Browse files Browse the repository at this point in the history
Since build should be overridden less often than options, make it last.
  • Loading branch information
elpete committed Sep 22, 2017
1 parent 1bd2dcb commit 3ee5dca
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion models/Schema/SchemaBuilder.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ component accessors="true" singleton {
return this;
}

function create( table, callback, build = true, options = {} ) {
function create( table, callback, options = {}, build = true ) {
var blueprint = new Blueprint( this, getGrammar() );
blueprint.addCommand( "create" );
blueprint.setTable( table );
Expand Down
Loading

0 comments on commit 3ee5dca

Please sign in to comment.