Permalink
Browse files

Added schema and DB connection for users table

  • Loading branch information...
1 parent b93f84b commit af86033d2f3da39047d96a92480f6410fab8a7f7 @weierophinney committed Oct 2, 2010
@@ -13,6 +13,7 @@ widgets="/home/matthew/git/zf-examples/widgets-as-helpers" CD=. filter="*.php *.
modules=modules {
poll=poll {
configs=configs {
+ poll.ini
}
controllers=controllers {
}
@@ -46,6 +47,9 @@ widgets="/home/matthew/git/zf-examples/widgets-as-helpers" CD=. filter="*.php *.
HandleLogin.php
}
models=models {
+ sql=sql {
+ users.sql
+ }
}
views=views {
filters=filters {
@@ -9,6 +9,8 @@ resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.params.displayExceptions = 0
resources.modules[] =
+resources.db.adapter = "pdo_sqlite"
+resources.db.params.dbname = APPLICATION_PATH "/../data/db/application.db"
[staging : production]
@@ -0,0 +1,8 @@
+CREATE TABLE IF NOT EXISTS users (
+ username VARCHAR(32) PRIMARY KEY NOT NULL,
+ password CHAR(64) NOT NULL,
+ first_name VARCHAR(64),
+ last_name VARCHAR(64),
+ email VARCHAR(256),
+ url VARCHAR(256)
+);

0 comments on commit af86033

Please sign in to comment.