From 5d4fa1ce17b3db31d551ed1bb900985a9ed70780 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 9 Aug 2011 21:37:54 -0400 Subject: [PATCH] starting in on 15.8, as 15.7 seemed to be a read-only recipe --- cookbook/015/hodgepodge/db/dbinit.sql | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cookbook/015/hodgepodge/db/dbinit.sql b/cookbook/015/hodgepodge/db/dbinit.sql index fa80f69..1c887e2 100644 --- a/cookbook/015/hodgepodge/db/dbinit.sql +++ b/cookbook/015/hodgepodge/db/dbinit.sql @@ -1,7 +1,12 @@ -DROP TABLE IF EXISTS 'people'; - -CREATE TABLE 'people' ( +CREATE TABLE IF NOT EXISTS 'people' ( 'id' INTEGER PRIMARY KEY ASC AUTOINCREMENT, 'name' VARCHAR(255), 'email' VARCHAR(255) ); + + +CREATE TABLE IF NOT EXISTS 'users' ( + 'id' INTEGER PRIMARY KEY ASC AUTOINCREMENT, + 'username' VARCHAR(255) NOT NULL, + 'password' VARCHAR(40) NOT NULL +);