                    post_id INT(11) NOT NULL,
                    tag_id INT(11) NOT NULL,
                    FOREIGN KEY (post_id) REFERENCES posts(id) ON DELETE CASCADE,
-                   FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCACDE
+                   FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE
                  )"]))
 
 (defn do-migrate []

  (sql/execute! db/spec
                ["CREATE TABLE IF NOT EXISTS tags (
                   id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
                   name VARCHAR(256),
                 )"]))

(defn post-tag-migration []

    (user-migration)
    (page-migration)
    (post-migration)
    (author-migration)
    (comment-migration)
    (tag-migration)
    (post-tag-migration)
    (println "Successfully created DB entries.")))

(defn migrated? [table-name]
