Add a function to create tables.
This commit is contained in:
@@ -14,3 +14,7 @@
|
||||
[client]
|
||||
(. client connect))
|
||||
|
||||
(defn create-tables
|
||||
[client]
|
||||
(. client query "CREATE TABLE IF NOT EXISTS articles (id SERIAL PRIMARY KEY, title VARCHAR(255) NOT NULL, content TEXT NOT NULL, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP);"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user