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 );