mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Initial commit
This commit is contained in:
commit
792b1a5083
25 files changed
+50258
No files matched your search
@@ -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
|
||||
);
|
||||
|
||||
Executable
+12
@@ -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}"
|
||||
@@ -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);
|
||||
Reference in new issue
Block a user