Double quotes in migration
This commit is contained in:
parent
b0cabdac15
commit
7dedd8d501
@ -157,7 +157,7 @@ customMigrations = Map.fromListWith (>>)
|
|||||||
|
|
||||||
tableExists :: MonadIO m => Text -> ReaderT SqlBackend m Bool
|
tableExists :: MonadIO m => Text -> ReaderT SqlBackend m Bool
|
||||||
tableExists table = do
|
tableExists table = do
|
||||||
haveSchoolTable <- [sqlQQ| SELECT to_regclass('#{table}'); |]
|
haveSchoolTable <- [sqlQQ| SELECT to_regclass("#{table}"); |]
|
||||||
case haveSchoolTable :: [Maybe (Single Text)] of
|
case haveSchoolTable :: [Maybe (Single Text)] of
|
||||||
[Just _] -> return True
|
[Just _] -> return True
|
||||||
_other -> return False
|
_other -> return False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user