Skip to content

Instantly share code, notes, and snippets.

@kumarshantanu
Created August 25, 2010 22:05
Show Gist options
  • Save kumarshantanu/550393 to your computer and use it in GitHub Desktop.
Save kumarshantanu/550393 to your computer and use it in GitHub Desktop.
(in-db db
(println "** Dropping tables **")
(try
(drop-table blog-entry-meta)
(catch Exception e
(println (str "Error dropping table " (:name blog-entry-meta) ": "
(.getMessage e) " [Ignored]"))))
(try
(drop-table entry-comment-meta)
(catch Exception e
(println (str "Error dropping table " (:name entry-comment-meta) ": "
(.getMessage e) " [Ignored]"))))
(println "** Creating tables **")
(create-table entry-comment-meta)
(create-table blog-entry-meta))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment