Skip to content

Commit

Permalink
add CASCADE in pg drop table (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsumura-h authored Jul 16, 2021
1 parent 100b895 commit 0090434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion allographer.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.18.0"
version = "0.18.1"
author = "Hidenobu Itsumura @dumblepytech1 as 'medy'"
description = "A Nim query builder library inspired by Laravel/PHP and Orator/Python"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/allographer/schema_builder/alters/postgres_alter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ proc drop(table:string) =
let db = db()
defer: db.close()
try:
let query = &"DROP TABLE {table}"
let query = &"DROP TABLE {table} CASCADE"
logger(query)
db.exec(sql query)
except:
Expand Down

0 comments on commit 0090434

Please sign in to comment.