Changes to IDs due to minor regression process change.

This commit is contained in:
Andrew McMillan 2010-11-06 22:35:31 +13:00
parent 515a31bbc8
commit 5788a5b62d
30 changed files with 91 additions and 90 deletions

View File

@ -1,4 +1,4 @@
-- Some sample data to prime the database...
-- Some base data to prime the database...
-- FIXME: Only insert the rows if they are not there already.
INSERT INTO roles ( role_no, role_name ) VALUES( 1, 'Admin');
@ -9,11 +9,19 @@ INSERT INTO roles ( role_no, role_name ) VALUES( 4, 'Resource');
-- Set the insert sequence to the next number, with a minimum of 10
SELECT setval('roles_role_no_seq', (SELECT 10 UNION SELECT role_no FROM roles ORDER BY 1 DESC LIMIT 1) );
INSERT INTO principal_type (principal_type_id, principal_type_desc) VALUES( 1, 'Person' );
INSERT INTO principal_type (principal_type_id, principal_type_desc) VALUES( 2, 'Resource' );
INSERT INTO principal_type (principal_type_id, principal_type_desc) VALUES( 3, 'Group' );
-- Create the administrator record.
INSERT INTO usr ( user_no, active, email_ok, updated, username, password, fullname, email )
VALUES ( 1, TRUE, current_date, current_date, 'admin', '**nimda', 'DAViCal Administrator', 'calendars@example.net' );
INSERT INTO principal ( principal_id, type_id, user_no, displayname, default_privileges )
VALUES ( 1, 1, 1, 'DAViCal Administrator', 0::BIT(24) );
INSERT INTO role_member (user_no, role_no) VALUES(1, 1);
-- Set the insert sequence to the next number, with a minimum of 1000
SELECT setval('usr_user_no_seq', (SELECT 1000 UNION SELECT user_no FROM usr ORDER BY 1 DESC LIMIT 1) );
@ -29,12 +37,6 @@ INSERT INTO relationship_type ( rt_id, rt_name, confers, bit_confers )
INSERT INTO relationship_type ( rt_id, rt_name, confers, bit_confers )
VALUES( 4, 'Can see free/busy time of', 'F', privilege_to_bits( 'caldav:read-free-busy') );
INSERT INTO principal_type (principal_type_id, principal_type_desc) VALUES( 1, 'Person' );
INSERT INTO principal_type (principal_type_id, principal_type_desc) VALUES( 2, 'Resource' );
INSERT INTO principal_type (principal_type_id, principal_type_desc) VALUES( 3, 'Group' );
INSERT INTO principal ( type_id, user_no, displayname, default_privileges )
VALUES ( 1, 1, 'DAViCal Administrator', 0::BIT(24) );
-- Set the insert sequence to the next number, with a minimum of 1000
SELECT setval('relationship_type_rt_id_seq', (SELECT 10 UNION SELECT rt_id FROM relationship_type ORDER BY 1 DESC LIMIT 1) );

View File

@ -7,11 +7,11 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
bind_id: >1437<
bind_id: >1450<
bound_source_id: >11<
dav_displayname: >User 2's Calendar, as uploaded by Admin<
dav_name: >/user4/user2/<
dav_owner_id: >6<
dav_owner_id: >1005<
length: >8<
parent_container: >/user4/<

View File

@ -9,11 +9,11 @@ Content-Type: text/xml; charset="utf-8"
<error xmlns="DAV:">
<DAV::can-overwrite/>A resource already exists at the destination.
</error>
bind_id: >1437<
bind_id: >1450<
bound_source_id: >11<
dav_displayname: >User 2's Calendar, as uploaded by Admin<
dav_name: >/user4/user2/<
dav_owner_id: >6<
dav_owner_id: >1005<
length: >8<
parent_container: >/user4/<

View File

@ -6,7 +6,7 @@
<prop>
<displayname>User 4</displayname>
<resource-id>
<href>/caldav.php/.resources/6</href>
<href>/caldav.php/.resources/1005</href>
</resource-id>
<parent-set>
<parent>
@ -64,7 +64,7 @@
<prop>
<displayname>User 4 Outbox</displayname>
<resource-id>
<href>/caldav.php/.resources/1435</href>
<href>/caldav.php/.resources/1448</href>
</resource-id>
<parent-set>
<parent>

View File

@ -7,14 +7,14 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
bind_id: >1437<
bind_id: >1450<
bound_source_id: >11<
dav_displayname: >Updated Displayname with PROPPATCH<
dav_name: >/user4/user2/<
parent_container: >/user4/<
ticket_id_length: >8<
bind_id: >1438<
bind_id: >1451<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/user1/<

View File

@ -7,21 +7,21 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
bind_id: >1437<
bind_id: >1450<
bound_source_id: >11<
dav_displayname: >Updated Displayname with PROPPATCH<
dav_name: >/user4/user2/<
length: >8<
parent_container: >/user4/<
bind_id: >1438<
bind_id: >1451<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/user1/<
length: >8<
parent_container: >/user4/<
bind_id: >1442<
bind_id: >1455<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/base/user1/<

View File

@ -7,28 +7,28 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
bind_id: >1437<
bind_id: >1450<
bound_source_id: >11<
dav_displayname: >Updated Displayname with PROPPATCH<
dav_name: >/user4/user2/<
length: >8<
parent_container: >/user4/<
bind_id: >1438<
bind_id: >1451<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/user1/<
length: >8<
parent_container: >/user4/<
bind_id: >1442<
bind_id: >1455<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/base/user1/<
length: >8<
parent_container: >/user4/base/<
bind_id: >1443<
bind_id: >1456<
bound_source_id: >11<
dav_displayname: >User 2's Calendar, as uploaded by Admin<
dav_name: >/user4/base/user2/<

View File

@ -9,28 +9,28 @@ Content-Type: text/xml; charset="utf-8"
<error xmlns="DAV:">
<DAV::can-overwrite/>A resource already exists at the destination.
</error>
bind_id: >1437<
bind_id: >1450<
bound_source_id: >11<
dav_displayname: >Updated Displayname with PROPPATCH<
dav_name: >/user4/user2/<
length: >8<
parent_container: >/user4/<
bind_id: >1438<
bind_id: >1451<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/user1/<
length: >8<
parent_container: >/user4/<
bind_id: >1442<
bind_id: >1455<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/base/user1/<
length: >8<
parent_container: >/user4/base/<
bind_id: >1443<
bind_id: >1456<
bound_source_id: >11<
dav_displayname: >User 2's Calendar, as uploaded by Admin<
dav_name: >/user4/base/user2/<

View File

@ -6,7 +6,7 @@
<prop>
<displayname>A normal collection</displayname>
<resource-id>
<href>/caldav.php/.resources/1440</href>
<href>/caldav.php/.resources/1453</href>
</resource-id>
<parent-set>
<parent>
@ -90,7 +90,7 @@
<prop>
<displayname>A sub collection</displayname>
<resource-id>
<href>/caldav.php/.resources/1441</href>
<href>/caldav.php/.resources/1454</href>
</resource-id>
<parent-set>
<parent>

View File

@ -6,7 +6,7 @@
<prop>
<displayname>A normal collection</displayname>
<resource-id>
<href>/caldav.php/.resources/1440</href>
<href>/caldav.php/.resources/1453</href>
</resource-id>
<parent-set>
<parent>

View File

@ -8,7 +8,7 @@
<href>/caldav.php/user4/</href>
</C:calendar-home-set>
<resource-id>
<href>/caldav.php/.resources/6</href>
<href>/caldav.php/.resources/1005</href>
</resource-id>
<parent-set>
<parent>

View File

@ -7,8 +7,8 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
bind_id: >1437<
bind_owner: >6<
bind_id: >1450<
bind_owner: >1005<
bound_source_id: >11<
dav_displayname: >Updated Displayname with PROPPATCH<
dav_name: >/user4/user2/<
@ -17,10 +17,10 @@ Content-Type: text/plain; charset="utf-8"
privileges: >000000000001001011100111<
target_collection: >11<
target_resource_i: >NULL<
ticket_owner: >4<
ticket_owner: >1003<
bind_id: >1438<
bind_owner: >6<
bind_id: >1451<
bind_owner: >1005<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/user1/<
@ -29,10 +29,10 @@ target_resource_i: >NULL<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<
ticket_owner: >3<
ticket_owner: >1002<
bind_id: >1442<
bind_owner: >6<
bind_id: >1455<
bind_owner: >1005<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/base/user1/<
@ -41,10 +41,10 @@ target_resource_i: >NULL<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<
ticket_owner: >3<
ticket_owner: >1002<
bind_id: >1443<
bind_owner: >6<
bind_id: >1456<
bind_owner: >1005<
bound_source_id: >11<
dav_displayname: >User 2's Calendar, as uploaded by Admin<
dav_name: >/user4/base/user2/<
@ -53,9 +53,9 @@ target_resource_i: >NULL<
privileges: >000000000001001011100111<
target_collection: >11<
target_resource_i: >NULL<
ticket_owner: >4<
ticket_owner: >1003<
bind_id: >1456<
bind_id: >1469<
bind_owner: >1<
bound_source_id: >12<
dav_displayname: >user3 home<

View File

@ -6,17 +6,17 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
bind_id: >1442<
bind_id: >1455<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/base/user1/<
dav_owner_id: >6<
dav_owner_id: >1005<
parent_container: >/user4/base/<
bind_id: >1443<
bind_id: >1456<
bound_source_id: >11<
dav_displayname: >User 2's Calendar, as uploaded by Admin<
dav_name: >/user4/base/user2/<
dav_owner_id: >6<
dav_owner_id: >1005<
parent_container: >/user4/base/<

View File

@ -7,36 +7,36 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
bind_id: >1437<
bind_id: >1450<
bound_source_id: >11<
dav_displayname: >Updated Displayname with PROPPATCH<
dav_name: >/user4/user2/<
length: >8<
parent_container: >/user4/<
bind_id: >1438<
bind_id: >1451<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/user1/<
length: >8<
parent_container: >/user4/<
bind_id: >1442<
bind_id: >1455<
bound_source_id: >10<
dav_displayname: >User 1's Calendaranza<
dav_name: >/user4/base/user1/<
length: >8<
parent_container: >/user4/base/<
bind_id: >1443<
bind_id: >1456<
bound_source_id: >11<
dav_displayname: >User 2's Calendar, as uploaded by Admin<
dav_name: >/user4/base/user2/<
length: >8<
parent_container: >/user4/base/<
bind_id: >1457<
bound_source_id: >1440<
bind_id: >1470<
bound_source_id: >1453<
dav_displayname: >A normal collection<
dav_name: >/user4/boundbase/<
length: >NULL<

View File

@ -6,7 +6,7 @@
<prop>
<displayname>A normal collection</displayname>
<resource-id>
<href>/caldav.php/.resources/1440</href>
<href>/caldav.php/.resources/1453</href>
</resource-id>
<parent-set>
<parent>
@ -90,7 +90,7 @@
<prop>
<displayname>A sub collection</displayname>
<resource-id>
<href>/caldav.php/.resources/1441</href>
<href>/caldav.php/.resources/1454</href>
</resource-id>
<parent-set>
<parent>
@ -112,7 +112,7 @@
<prop>
<displayname>newcalendar</displayname>
<resource-id>
<href>/caldav.php/.resources/1446</href>
<href>/caldav.php/.resources/1459</href>
</resource-id>
<parent-set>
<parent>

View File

@ -6,7 +6,7 @@
<prop>
<displayname>A normal collection</displayname>
<resource-id>
<href>/caldav.php/.resources/1440</href>
<href>/caldav.php/.resources/1453</href>
</resource-id>
<parent-set>
<parent>
@ -99,7 +99,7 @@
<prop>
<displayname>A sub collection</displayname>
<resource-id>
<href>/caldav.php/.resources/1441</href>
<href>/caldav.php/.resources/1454</href>
</resource-id>
<parent-set>
<parent>
@ -125,7 +125,7 @@
<prop>
<displayname>newcalendar</displayname>
<resource-id>
<href>/caldav.php/.resources/1446</href>
<href>/caldav.php/.resources/1459</href>
</resource-id>
<parent-set>
<parent>

View File

@ -1,6 +1,6 @@
setval
--------
1436
1449
(1 row)
setval

View File

@ -1,6 +1,6 @@
setval
--------
1457
1470
(1 row)
setval

View File

@ -16,7 +16,7 @@ Content-Type: text/plain; charset="utf-8"
attendees: >40<
collection_id: >1402<
collection_id: >1415<
dav_displayname: >anotherone<
dav_etag: >f9a8ee6b41d9b02aa5176e6da349121a<
dav_name: >/user1/anotherone/<

View File

@ -6,9 +6,9 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
cd_collection: >1402<
cd_collection: >1415<
cd_user_no: >10<
ci_collection: >1402<
ci_collection: >1415<
ci_user_no: >10<
data_name: >/user1/anotherone/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
item_name: >/user1/anotherone/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<

View File

@ -7,20 +7,20 @@ Content-Type: text/plain; charset="utf-8"
by_collection: >NULL<
by_principal: >3<
by_principal: >1002<
displayname: >User 4<
privileges: >000000001111111011111111<
to_principal: >6<
to_principal: >1005<
by_collection: >NULL<
by_principal: >3<
by_principal: >1002<
displayname: >Assistant 1<
privileges: >000000000001001011000111<
to_principal: >10<
to_principal: >1009<
by_collection: >NULL<
by_principal: >3<
by_principal: >1002<
displayname: >Team for Client1<
privileges: >000000000001001000000001<
to_principal: >14<
to_principal: >1013<

View File

@ -10,5 +10,5 @@ Content-Type: text/plain; charset="utf-8"
by_principal: >NULL<
displayname: >User 4<
privileges: >000000000000001000110001<
to_principal: >6<
to_principal: >1005<

View File

@ -7,20 +7,20 @@ Content-Type: text/plain; charset="utf-8"
by_collection: >NULL<
by_principal: >3<
by_principal: >1002<
displayname: >User 4<
privileges: >000000000001001000100001<
to_principal: >6<
to_principal: >1005<
by_collection: >NULL<
by_principal: >3<
by_principal: >1002<
displayname: >Assistant 1<
privileges: >000000000001001011000111<
to_principal: >10<
to_principal: >1009<
by_collection: >NULL<
by_principal: >3<
by_principal: >1002<
displayname: >Team for Client1<
privileges: >000000000001001000000001<
to_principal: >14<
to_principal: >1013<

View File

@ -25,7 +25,7 @@ Content-Type: text/xml; charset="utf-8"
</T:ticketdiscovery>
</prop>
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<

View File

@ -11,7 +11,7 @@ Content-Type: text/xml; charset="utf-8"
<missing-xml-for-request/>
</error>
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<

View File

@ -30,15 +30,15 @@ Content-Type: text/xml; charset="utf-8"
</T:ticketdiscovery>
</prop>
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<
timeout: >01:00:00<
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001011100111<
target_collection: >10<
target_resource_i: >1369<
target_resource_i: >1382<
timeout: >1 day<

View File

@ -10,15 +10,15 @@
</need-privileges>
</error>
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<
timeout: >01:00:00<
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001011100111<
target_collection: >10<
target_resource_i: >1369<
target_resource_i: >1382<
timeout: >24:00:00<

View File

@ -6,7 +6,7 @@ Content-Length: 0
Content-Type: text/plain; charset="utf-8"
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<

View File

@ -30,13 +30,13 @@ Content-Type: text/xml; charset="utf-8"
</T:ticketdiscovery>
</prop>
dav_owner_id: >3<
dav_owner_id: >1002<
privileges: >000000000001001000100001<
target_collection: >10<
target_resource_i: >NULL<
timeout: >01:00:00<
dav_owner_id: >4<
dav_owner_id: >1003<
privileges: >000000000001001011100111<
target_collection: >11<
target_resource_i: >NULL<

View File

@ -42,6 +42,7 @@ INSERT INTO usr ( user_no, active, email_ok, updated, username, password, fullna
INSERT INTO role_member (user_no, role_no) VALUES( 300, 2);
SELECT setval('usr_user_no_seq', 1000);
SELECT setval('dav_id_seq', 1000);
UPDATE usr SET joined = '2009-06-01', updated = '2009-06-02';
@ -69,8 +70,6 @@ INSERT INTO principal (type_id, user_no, displayname, default_privileges)
WHERE EXISTS(SELECT 1 FROM role_member JOIN roles USING(role_no) WHERE role_name = 'Group' AND role_member.user_no = usr.user_no)
AND NOT EXISTS(SELECT 1 FROM principal WHERE principal.user_no = usr.user_no);
SELECT setval('dav_id_seq', 1000);
-- Set the insert sequence to the next number, with a minimum of 1000
SELECT setval('relationship_type_rt_id_seq', (SELECT 10 UNION SELECT rt_id FROM relationship_type ORDER BY 1 DESC LIMIT 1) );