Skip to content

Commit

Permalink
Fixes one of the spec failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
russ authored and anykeyh committed Jun 24, 2018
1 parent ba9b82f commit 0279305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/clear/migration/migration.cr
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ module Clear::Migration
op.down.each { |x| Clear::SQL.execute(x.as(String)) }
}

SQL.delete("__clear_metadatas").where({metatype: "migration", value: uid.to_s}).execute
SQL.delete("default", "__clear_metadatas").where({metatype: "migration", value: uid.to_s}).execute
end

self
Expand Down
4 changes: 2 additions & 2 deletions src/clear/sql/sql.cr
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ module Clear

# Start a DELETE table query
def delete(table = nil)
Clear::SQL::DeleteQuery.new("default", from: table)
Clear::SQL::DeleteQuery.new("default").from(table)
end

def delete(connection : Symbolic, table = nil)
Clear::SQL::DeleteQuery.new(connection, from: table)
Clear::SQL::DeleteQuery.new(connection).from(table)
end

# Start an INSERT INTO table query
Expand Down

0 comments on commit 0279305

Please sign in to comment.