Skip to content

Commit

Permalink
Implementing CartoDB-recommended change from using DELETE (deprecated…
Browse files Browse the repository at this point in the history
… in CartoDB API) to TRUNCATE.
  • Loading branch information
tucotuco committed Feb 6, 2014
1 parent 7c93cf9 commit e91b33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/gulo/harvest.clj
Expand Up @@ -201,7 +201,7 @@
"Sync resource table on CartoDB by populating from EML and resource_staging."
[]
(let [urls (get-resource-urls STAGING-TABLE)]
(cartodb/query (format "DELETE FROM %s" HARVEST-TABLE) "vertnet" :api-key util/api-key)
(cartodb/query (format "TRUNCATE TABLE %s RESTART IDENTITY) "vertnet" :api-key util/api-key)
(doall
(map sync-resource urls))))
Expand Down

0 comments on commit e91b33d

Please sign in to comment.