aboutsummaryrefslogtreecommitdiff
path: root/src/guff/database-updater.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/database-updater.cr')
-rw-r--r--src/guff/database-updater.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guff/database-updater.cr b/src/guff/database-updater.cr
index b7a8af6..a6e2167 100644
--- a/src/guff/database-updater.cr
+++ b/src/guff/database-updater.cr
@@ -12,7 +12,7 @@ module Guff
",
set_version_delete: "
- DELETE FROM metadata where name = 'version'
+ DELETE FROM metadata WHERE name = 'version'
",
set_version_insert: "
@@ -138,7 +138,7 @@ module Guff
private def set_version(version)
@db.query(SQL[:set_version_delete])
- @db.query(SQL[:set_version_insert], [version])
+ @db.query(SQL[:set_version_insert], [version.to_s])
end
end
end