Created
August 25, 2010 22:05
-
-
Save kumarshantanu/550393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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