mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-26 17:56:29 +00:00
Added a version of patch 1.1.11 which works for PostgreSQL 8.x
This commit is contained in:
parent
adc1166ff6
commit
5b4071f8e4
17
dba/patches/1.1.11a.sql
Normal file
17
dba/patches/1.1.11a.sql
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
-- Sort out accessing calendar entries.
|
||||
-- This patch file is the same in/out revision as 1.1.11 but it works with newer databases (8.x)
|
||||
|
||||
BEGIN;
|
||||
SELECT check_db_revision(1,1,10);
|
||||
|
||||
ALTER TABLE caldav_data DROP CONSTRAINT "caldav_data_user_no_fkey";
|
||||
ALTER TABLE caldav_data ADD CONSTRAINT "caldav_data_user_no_fkey" FOREIGN KEY (user_no) REFERENCES usr(user_no) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE;
|
||||
|
||||
ALTER TABLE collection DROP CONSTRAINT "collection_user_no_fkey";
|
||||
ALTER TABLE collection ADD CONSTRAINT "collection_user_no_fkey" FOREIGN KEY (user_no) REFERENCES usr(user_no) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE;
|
||||
|
||||
SELECT new_db_revision(1,1,11, 'November' );
|
||||
COMMIT;
|
||||
ROLLBACK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user