From 58568a570b3202d0f47deac3ab9e04cc69f8351d Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 10 Aug 2011 20:54:15 -0400 Subject: [PATCH] starting in on 15.9 --- cookbook/015/hodgepodge/db/dbinit.sql | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cookbook/015/hodgepodge/db/dbinit.sql b/cookbook/015/hodgepodge/db/dbinit.sql index 1c887e2..1add2d0 100644 --- a/cookbook/015/hodgepodge/db/dbinit.sql +++ b/cookbook/015/hodgepodge/db/dbinit.sql @@ -1,12 +1,14 @@ -CREATE TABLE IF NOT EXISTS 'people' ( +DROP TABLE IF EXISTS 'people'; +CREATE TABLE 'people' ( 'id' INTEGER PRIMARY KEY ASC AUTOINCREMENT, 'name' VARCHAR(255), 'email' VARCHAR(255) ); -CREATE TABLE IF NOT EXISTS 'users' ( +DROP TABLE IF EXISTS 'users'; +CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY ASC AUTOINCREMENT, 'username' VARCHAR(255) NOT NULL, - 'password' VARCHAR(40) NOT NULL + 'hashed_password' VARCHAR(40) NOT NULL );