mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Bugger, fix up the DB patches.
This commit is contained in:
parent
06431170c8
commit
bbcd6a82ac
13
dba/patches/1.1.10.sql
Normal file
13
dba/patches/1.1.10.sql
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
-- Make sure that class is set to something, by default PUBLIC.
|
||||
-- According to RFC2445, 4.8.1.3.
|
||||
|
||||
BEGIN;
|
||||
SELECT check_db_revision(1,1,9);
|
||||
|
||||
UPDATE calendar_item SET class = 'PUBLIC' WHERE class IS NULL;
|
||||
|
||||
SELECT new_db_revision(1,1,10, 'October' );
|
||||
COMMIT;
|
||||
ROLLBACK;
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
|
||||
-- Make sure that class is set to something, by default PUBLIC.
|
||||
-- According to RFC2445, 4.8.1.3.
|
||||
-- Adding a primary key to the calendar_item table
|
||||
|
||||
BEGIN;
|
||||
SELECT check_db_revision(1,1,8);
|
||||
|
||||
UPDATE calendar_item SET class = 'PUBLIC' WHERE class IS NULL;
|
||||
ALTER TABLE calendar_item ADD PRIMARY KEY (user_no, dav_name );
|
||||
|
||||
SELECT new_db_revision(1,1,9, 'October' );
|
||||
SELECT new_db_revision(1,1,9, 'September' );
|
||||
COMMIT;
|
||||
ROLLBACK;
|
||||
|
||||
VACUUM FULL ANALYZE;
|
||||
Loading…
x
Reference in New Issue
Block a user