291 Commits

Author SHA1 Message Date
Mark Davies
0797e8233e First batch of database indexes
Added in support of Issue #31, Database Performance Improvements. Note
creation of 1.2.12 db patch script - may need renaming or other special
treatment when merging this branch.
2014-12-16 21:29:26 +01:00
Mark Davies
1fe5d24d9f Fix up Windows create-database.bat - see Issue #32. 2014-12-16 21:07:38 +01:00
Aaron W. Swenson
cfd5fd7555 Loop Over AWL Directory Candidates
Using this method we're able to loop over the candidate directories
until we find what should be suitable AWL location. Further, adding
additional locations is as simple as adding a new line to ${awldirs}.

It does have the limitation that if the path has a new line in it
(/some/ridic
ulous/path), it'll treat it as two different paths. However, if
somebody seriously has that, they deserve the pain.
2014-11-14 13:44:39 -05:00
“Paul
931651ca32 Remove quoted SQL language identifiers 2014-09-02 20:01:28 +02:00
Ján Máté
b5e409f7da fix to rename/delete the collection properties during the collection renaming/deleting 2013-10-25 12:16:27 +13:00
Andrew McMillan
8f3175248a A corrected change to fix the case of the language name everywhere. 2013-03-06 23:56:40 +13:00
Andrew McMillan
25c9fca4b8 Correct capitalisation of 'plpgsql' language for Postgres 9.2. 2013-03-06 20:22:55 +13:00
Andrew McMillan
5e195b151e A function which can expand collections inside collections.
Including through bindings.
2012-05-05 23:00:28 +12:00
Andrew McMillan
7c15051f84 Further fixes to WebDAV synchronization.
This should be fully reliable now and also cleans out all sync
changes more than one week old.  update-database is needed to pull
the new function.
2012-04-17 15:44:09 +12:00
Andrew McMillan
c6b95bc3f6 Do a bit_or() among multiple privilege settings. 2012-04-05 13:22:47 +12:00
Andrew McMillan
7140963e49 Allow user_no, created and modified to be set on create. 2012-01-15 20:44:10 +13:00
Andrew McMillan
d86132ed54 Current locales. 2011-11-21 10:57:10 +13:00
Andrew McMillan
3198191462 New Spanish(Spain) translation, updated French translations. 2011-10-26 12:36:01 +13:00
Andrew McMillan
c41f4071e4 Get rid of unsightly error due to removal of time_zone table. 2011-09-30 11:56:35 +02:00
Andrew McMillan
6d89db58d0 Fix setting of PG password from administration.yml during upgrade. 2011-09-24 14:29:41 +12:00
Andrew McMillan
cd7f8c35f2 Update to version 1.2.11 2011-09-24 12:56:11 +12:00
Andrew McMillan
5104ca25a4 Provide an alternative 1.2.10 with the check_db_revision() function fixed. 2011-09-20 08:55:26 +12:00
Andrew McMillan
cdc23ea732 Add etag to timezone table. 2011-09-19 08:42:28 +12:00
Andrew McMillan
f9ad324ba1 Adjustments to timezones representation in the database to support timezone protocol. 2011-09-17 23:40:04 +12:00
Andrew McMillan
05d42557d7 Update davical.sql to 1.2.10. 2011-09-12 09:49:32 +12:00
Andrew McMillan
1c965d4cdf Removed these outdated files. 2011-09-11 00:56:16 +12:00
Andrew McMillan
b4364fb999 Fix for the following error:
davical: LOG: principals/users/cars/hilux/: Query: QF: SQL error "42804" - ERROR: column "changed_by" is of type integer but expression is of type name LINE 1: ...on, property_name, property_value ) VALUES( path, user, curr... ^ HINT: You will need to rewrite or cast the expression. QUERY: INSE
davical: LOG: principals/users/cars/hilux/: Query: QF: RT INTO property ( dav_name, changed_by, changed_on, property_name, property_value ) VALUES( path, user, current_timestamp, key, value ) CONTEXT: PL/pgSQL function "set_dav_property" line 16 at SQL statement"
davical: LOG: principals/users/cars/hilux/: Query: QF: SELECT set_dav_property( :dav_name, :user_no, :tag::text, :value::text)
davical: LOG: principals/users/cars/hilux/: Query: QF:     ":dav_name" => "/cars/hilux/"
davical: LOG: principals/users/cars/hilux/: Query: QF:     ":user_no" => "1023"
davical: LOG: principals/users/cars/hilux/: Query: QF:     ":tag" => "http://apple.com/ns/ical/:calendar-color"
davical: LOG: principals/users/cars/hilux/: Query: QF:     ":value" => "#711A76"

From 'mate' on IRC.
2011-08-28 16:38:14 +12:00
Andrew McMillan
05badd4d3a New SQL patch file, and fix comment in the last one also. 2011-08-25 15:05:28 +12:00
Rob Ostensen
b2ef0b0bf2 Add the required fields to dav_binding and clean up the SQL to better match the rest of the source.
Add a header/last-modified check to skip the import on calendars that haven't changed.
2011-08-25 14:17:28 +12:00
Andrew McMillan
504651a3f5 Add new locales and restructure how they are handled.
We now build the dba/supported_locales.sql file from po/locale.values
files for each locale, and we are also fetching the translations from
transifex.net in order to build them.

This commit also adds support for some new locales, especially
Brazilian Portuguese and Mexican Spanish.
2011-08-25 12:45:33 +12:00
Andrew McMillan
8743238952 Ensure dav_id_seq is initialized to a non-colliding value.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-04-03 21:36:45 +12:00
Andrew McMillan
5dbe73f709 Set the correct DBA username.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-03-31 11:40:34 +13:00
Andrew McMillan
ed7ffea332 Updated strings for localisation. 2011-01-14 16:20:16 +13:00
Andrew McMillan
493ec64cba Extend default_privileges to members of a group.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-03 10:10:52 +13:00
Leho Kraav
904f3069ab add et_EE to support locales 2010-12-27 12:37:16 +13:00
Andrew McMillan
4e12eb82e4 Update sync-collection REPORT to match -04 of draft. 2010-11-30 12:31:25 +13:00
Andrew McMillan
5788a5b62d Changes to IDs due to minor regression process change. 2010-11-06 22:35:31 +13:00
Andrew McMillan
6533a89b7e Change regression runner to look for sample data with tests. 2010-11-06 18:05:04 +13:00
Andrew McMillan
ccf332d912 Remove unneeded double-quote. 2010-11-04 08:43:29 +13:00
Andrew McMillan
6ebc542c2a Rename variable to work around Pg 9.0 reserved name. 2010-11-04 00:55:18 +13:00
Andrew McMillan
32a747da8e Fix privilege_to_bits function to set 'all' correctly & work with recent postgres 2010-10-09 08:54:51 -04:00
Andrew McMillan
8111c1cc9c Return NULL if we got given a sync token we know nothing about. 2010-09-25 22:27:09 +12:00
Andrew McMillan
b855a3cbc3 Fix write_sync_changes to cope with non-calendar resources. 2010-09-23 23:20:09 +12:00
Andrew McMillan
1fbf1be670 Add a weak_etag field to the calendar_attendee table. 2010-05-30 11:31:14 +12:00
Andrew McMillan
06abe8bd2e New patches for next upgrade. 2010-05-19 23:49:50 +12:00
Andrew McMillan
73219e4f57 A few minor database changes. 2010-05-12 22:15:44 +12:00
Andrew McMillan
2f8eb21b82 A few improvements to database creation.
Inspired by Peter Eisentraut's blog post about writing scripts
for PostgreSQL.
2010-05-12 22:14:32 +12:00
Andrew McMillan
bb2435eb34 Rename 'all' variable which appears to be a reserved word in PostgreSQL 9 2010-05-09 09:05:23 +12:00
Andrew McMillan
bf2d2c3870 Add a function to convert iCalendar interval syntax into SQL. 2010-05-07 22:44:13 +12:00
Andrew McMillan
0060b0ad92 Exit with error if the update fails. 2010-04-28 14:05:18 +12:00
Andrew McMillan
b806fa8305 A new trigger allowing calendar_alarm.component to be edited.
The trigger will then cause the caldav_data record to be
updated with the new alarm component, and the etag is changed.
2010-04-03 17:28:01 +13:00
Andrew McMillan
7cdd7ce0ef Teach set_dav_property() about dav_bindings. 2010-03-24 23:52:07 +13:00
Andrew McMillan
3072947a68 Add permissions for new tables in DB 1.2.8 2010-03-22 17:18:24 +13:00
Andrew McMillan
5311d3a68a Remove the freebusy_set from the collection. 2010-03-20 00:31:06 +13:00
Andrew McMillan
58356fb3e3 Remove the mashup tables which we will do more sensibly. 2010-03-18 19:57:14 +13:00