From c86a4b711315fc5a7088ee961c1ea46c3477701b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Wed, 20 Jan 2010 18:05:41 +0800 Subject: [PATCH] fixed syntax error in init-db.sql --- demo/Blog/misc/mysql/init-db.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/Blog/misc/mysql/init-db.sql b/demo/Blog/misc/mysql/init-db.sql index e6364b2..dc75a8b 100644 --- a/demo/Blog/misc/mysql/init-db.sql +++ b/demo/Blog/misc/mysql/init-db.sql @@ -1,4 +1,5 @@ -- Blog posts +drop table if exists posts; create table posts ( id serial, title varchar(128) not null, @@ -10,13 +11,15 @@ create table posts ( ); -- Blog comments +drop table if exists comments; create table comments ( id serial, sender varchar(64) not null, email varchar(64) not null, - url carchar(1024), + url varchar(1024), body text, - created timestamp(0) deafult now() not null, + created timestamp(0) default now() not null, + post bigint not null, foreign key (post) references posts(id) );