Skip to content

Commit 19c5cf9

Browse files
author
Christian Putzke
committed
- Added PostgreSQL support (Thanks to B5r1oJ0A9G for the PostgreSQL statements!)
1 parent 22c47f3 commit 19c5cf9

8 files changed

+46
-10
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Changes from v0.5 to v0.5.1
2+
- Added PostgreSQL support (Thanks to B5r1oJ0A9G for the PostgreSQL statements!)
3+
14
Changes from v0.4 to v0.5
25
- Added automaticly synchronized CardDAV contacts via cronjob
36
- Added larry skin support

README

+8-3
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,26 @@ Planned features
2121

2222
Requirements
2323
------------
24-
* SQL database
24+
* MySQL or PostgreSQL
2525
* CURL
2626

2727

2828
Installation
2929
------------
30-
* Execute SQL statements from /plugins/carddav/SQL/mysql.sql
30+
* Execute SQL statements from /plugins/carddav/SQL/yourDatabase.sql
3131
* Add 'carddav' to the plugins array in /config/main.inc.php
3232
* Copy /plugins/carddav/config.inc.php.dist to /plugins/carddav/config.inc.php
3333
* Login into your roundcube webmail and add your CardDAV server in the settings
3434

3535

3636
Update
3737
------
38-
* Execute new SQL statements from /plugins/carddav/SQL/mysql.update.sql
38+
* Execute new SQL statements from /plugins/carddav/SQL/yourDatabase.update.sql
39+
40+
41+
Special thanks
42+
--------------
43+
* B5r1oJ0A9G for the PostgreSQL statements!
3944

4045

4146
CardDAV server list

SQL/postgresql.sql

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
CREATE TABLE IF NOT EXISTS "carddav_server" (
2+
"carddav_server_id" serial,
3+
"user_id" int NOT NULL REFERENCES "users" ON DELETE CASCADE,
4+
"url" varchar(255) NOT NULL,
5+
"username" varchar(128) NOT NULL,
6+
"password" varchar(128) NOT NULL,
7+
"label" varchar(128) NOT NULL,
8+
"read_only" int NOT NULL,
9+
PRIMARY KEY ("carddav_server_id")
10+
);
11+
12+
CREATE TABLE IF NOT EXISTS "carddav_contacts" (
13+
"carddav_contact_id" serial,
14+
"carddav_server_id" int REFERENCES "carddav_server" ON DELETE CASCADE,
15+
"user_id" int,
16+
"etag" varchar(64) NOT NULL,
17+
"last_modified" varchar(128) NOT NULL,
18+
"vcard_id" varchar(64),
19+
"vcard" text NOT NULL,
20+
"words" text,
21+
"firstname" varchar(128) DEFAULT NULL,
22+
"surname" varchar(128) DEFAULT NULL,
23+
"name" varchar(255) DEFAULT NULL,
24+
"email" varchar(255) DEFAULT NULL,
25+
PRIMARY KEY ("carddav_server_id","user_id","vcard_id")
26+
);
27+
28+
CREATE INDEX "user_id" ON "carddav_contacts" ("user_id");

carddav.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @since 06.09.2011
1919
* @link http://www.graviox.de/
2020
* @link https://twitter.com/graviox/
21-
* @version 0.5
21+
* @version 0.5.1
2222
* @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
2323
*
2424
*/
@@ -30,7 +30,7 @@ class carddav extends rcube_plugin
3030
*
3131
* @constant string
3232
*/
33-
const VERSION = '0.5';
33+
const VERSION = '0.5.1';
3434

3535
/**
3636
* Tasks where the CardDAV plugin is loaded

carddav_addressbook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @since 22.09.2011
77
* @link http://www.graviox.de/
88
* @link https://twitter.com/graviox/
9-
* @version 0.5
9+
* @version 0.5.1
1010
* @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
1111
*
1212
*/

carddav_addressbook.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 12.09.2011
99
* @link http://www.graviox.de/
1010
* @link https://twitter.com/graviox/
11-
* @version 0.5
11+
* @version 0.5.1
1212
* @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
1313
*
1414
*/

carddav_settings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @since 12.09.2011
77
* @link http://www.graviox.de/
88
* @link https://twitter.com/graviox/
9-
* @version 0.5
9+
* @version 0.5.1
1010
* @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
1111
*
1212
*/

package.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<email>[email protected]</email>
1717
<active>yes</active>
1818
</lead>
19-
<date>2012-03-31</date>
19+
<date>2012-04-11</date>
2020
<version>
21-
<release>0.5</release>
21+
<release>0.5.1</release>
2222
</version>
2323
<stability>
2424
<release>stable</release>

0 commit comments

Comments
 (0)