Initial commit

This commit is contained in:
Andrew McMillan committed 2006-09-04 23:11:31 +12:00
commit 792b1a5083
25 files changed
+50258

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
-- My CalDAV server - Database Schema
--
-- Use the usr, group and schema management stufffrom libawl-php
\i /usr/share/awl/dba/awl-tables.sql
\i /usr/share/awl/dba/schema-management.sql
CREATE TABLE ics_event_data (
user_no INT references usr(user_no),
ics_event_name TEXT,
ics_event_etag TEXT,
ics_raw_data TEXT
);
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
#
# Build the CalDAV database
#
DBNAME="${1:-caldav}"
createdb -E UTF8 "${DBNAME}"
psql -f caldav.sql "${DBNAME}"
psql -f sample-data.sql "${DBNAME}"
+6
View File
@@ -0,0 +1,6 @@
-- Some sample data to prime the database...
INSERT INTO usr ( user_no, active, email_ok, updated, username, password, fullname, email )
VALUES( 1, TRUE, current_date, current_date, 'andrew', '**x', 'Andrew McMillan', 'andrew@catalyst.net.nz' );
SELECT setval('usr_user_no_seq', 1);