aboutsummaryrefslogtreecommitdiff
path: root/cmd/parser
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/parser')
-rw-r--r--cmd/parser/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/parser/main.go b/cmd/parser/main.go
index bf79439..6d3c3c4 100644
--- a/cmd/parser/main.go
+++ b/cmd/parser/main.go
@@ -123,7 +123,7 @@ func main() {
_, table_check := db.Query("SELECT * FROM posts;")
if table_check != nil {
- _, err = db.Exec("CREATE TABLE posts (id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL, time DATE DEFAULT CURRENT_DATE, content TEXT NOT NULL);")
+ _, err = db.Exec("CREATE TABLE posts (id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL, time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, content TEXT NOT NULL);")
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to create posts table: %v\n", err)
os.Exit(1)