| 1 |
alter table adminGroupMembers drop foreign key FK3D8EC689891E4122; |
|---|
| 2 |
alter table adminGroups drop foreign key FKCE66D203FCC6CD69; |
|---|
| 3 |
alter table adminGroups drop foreign key FKCE66D2037094B8E3; |
|---|
| 4 |
alter table alarm_attendees drop foreign key FK19F64E8B4E9CEE71; |
|---|
| 5 |
alter table alarm_attendees drop foreign key FK19F64E8BAEDD20DC; |
|---|
| 6 |
alter table alarms drop foreign key FKABA5D0427094B8E3; |
|---|
| 7 |
alter table alarms drop foreign key FKABA5D0427BAF9231; |
|---|
| 8 |
alter table alarms drop foreign key FKABA5D042ECC95E3C; |
|---|
| 9 |
alter table auth drop foreign key FK2DDDA87D9DCBFB; |
|---|
| 10 |
alter table authprefCalendars drop foreign key FK296C356A3D2DC521; |
|---|
| 11 |
alter table authprefCalendars drop foreign key FK296C356A6D224B2B; |
|---|
| 12 |
alter table authprefCategories drop foreign key FK37D48C477E8BD8A1; |
|---|
| 13 |
alter table authprefCategories drop foreign key FK37D48C476D224B2B; |
|---|
| 14 |
alter table authprefLocations drop foreign key FK2B901FD36D224B2B; |
|---|
| 15 |
alter table authprefLocations drop foreign key FK2B901FD3FB77CC4F; |
|---|
| 16 |
alter table authprefSponsors drop foreign key FK7D7DE5845A307285; |
|---|
| 17 |
alter table authprefSponsors drop foreign key FK7D7DE5846D224B2B; |
|---|
| 18 |
alter table calendars drop foreign key FKB6806CF57094B8E3; |
|---|
| 19 |
alter table calendars drop foreign key FKB6806CF5E84B9CF2; |
|---|
| 20 |
alter table calendars drop foreign key FKB6806CF5D321CC1C; |
|---|
| 21 |
alter table categories drop foreign key FK4D47461C7094B8E3; |
|---|
| 22 |
alter table categories drop foreign key FK4D47461CD321CC1C; |
|---|
| 23 |
alter table eventAnnotations drop foreign key FKA912EC2A5A307285; |
|---|
| 24 |
alter table eventAnnotations drop foreign key FKA912EC2A7094B8E3; |
|---|
| 25 |
alter table eventAnnotations drop foreign key FKA912EC2A3D2DC521; |
|---|
| 26 |
alter table eventAnnotations drop foreign key FKA912EC2AD321CC1C; |
|---|
| 27 |
alter table eventAnnotations drop foreign key FKA912EC2A4FC14404; |
|---|
| 28 |
alter table eventAnnotations drop foreign key FKA912EC2A247D7B73; |
|---|
| 29 |
alter table eventAnnotations drop foreign key FKA912EC2AFB77CC4F; |
|---|
| 30 |
alter table eventAnnotations drop foreign key FKA912EC2AEB04EBEF; |
|---|
| 31 |
alter table event_annotation_attendees drop foreign key FK7D0DEE6E4E9CEE71; |
|---|
| 32 |
alter table event_annotation_attendees drop foreign key FK7D0DEE6E13EADC74; |
|---|
| 33 |
alter table event_annotation_categories drop foreign key FKDD91477E8BD8A1; |
|---|
| 34 |
alter table event_annotation_categories drop foreign key FKDD914750C58A54; |
|---|
| 35 |
alter table event_annotationexdates drop foreign key FK38128D3E50C58A54; |
|---|
| 36 |
alter table event_annotationrdates drop foreign key FK2767404750C58A54; |
|---|
| 37 |
alter table event_annotationrrules drop foreign key FK283582B950C58A54; |
|---|
| 38 |
alter table event_attendees drop foreign key FK1943F944E9CEE71; |
|---|
| 39 |
alter table event_attendees drop foreign key FK1943F94ECC95E3C; |
|---|
| 40 |
alter table event_categories drop foreign key FKD2164E17E8BD8A1; |
|---|
| 41 |
alter table event_categories drop foreign key FKD2164E1ECC95E3C; |
|---|
| 42 |
alter table eventexdates drop foreign key FK84343DD8ECC95E3C; |
|---|
| 43 |
alter table eventrdates drop foreign key FK3A60146DECC95E3C; |
|---|
| 44 |
alter table eventrrules drop foreign key FK3B2E56DFECC95E3C; |
|---|
| 45 |
alter table events drop foreign key FKB307E1195A307285; |
|---|
| 46 |
alter table events drop foreign key FKB307E1197094B8E3; |
|---|
| 47 |
alter table events drop foreign key FKB307E1193D2DC521; |
|---|
| 48 |
alter table events drop foreign key FKB307E119D321CC1C; |
|---|
| 49 |
alter table events drop foreign key FKB307E119FB77CC4F; |
|---|
| 50 |
alter table events drop foreign key FKB307E119EB04EBEF; |
|---|
| 51 |
alter table filter_categories drop foreign key FKFE8575438A948DF; |
|---|
| 52 |
alter table filter_categories drop foreign key FKFE8575437E8BD8A1; |
|---|
| 53 |
alter table filter_creators drop foreign key FK85FF52AEF90D3261; |
|---|
| 54 |
alter table filter_creators drop foreign key FK85FF52AED321CC1C; |
|---|
| 55 |
alter table filter_locations drop foreign key FKCEE027579ED90656; |
|---|
| 56 |
alter table filter_locations drop foreign key FKCEE02757FB77CC4F; |
|---|
| 57 |
alter table filter_sponsors drop foreign key FKAC0CDD805A307285; |
|---|
| 58 |
alter table filter_sponsors drop foreign key FKAC0CDD80763F9ACF; |
|---|
| 59 |
alter table filters drop foreign key FKCD10A3FB7094B8E3; |
|---|
| 60 |
alter table filters drop foreign key FKCD10A3FBA562A89B; |
|---|
| 61 |
alter table filters drop foreign key FKCD10A3FB36B842E3; |
|---|
| 62 |
alter table filters drop foreign key FKCD10A3FBBA2D9A58; |
|---|
| 63 |
alter table locations drop foreign key FKB8A4575E7094B8E3; |
|---|
| 64 |
alter table locations drop foreign key FKB8A4575ED321CC1C; |
|---|
| 65 |
alter table preferences drop foreign key FK769ADEF87094B8E3; |
|---|
| 66 |
alter table preferences drop foreign key FK769ADEF85C7181DF; |
|---|
| 67 |
alter table properties drop foreign key FKC8CD8D33329258C5; |
|---|
| 68 |
alter table recurrences drop foreign key FKD6034B433910AF06; |
|---|
| 69 |
alter table recurrences drop foreign key FKD6034B434FC14404; |
|---|
| 70 |
alter table sponsors drop foreign key FK928F10997094B8E3; |
|---|
| 71 |
alter table sponsors drop foreign key FK928F1099D321CC1C; |
|---|
| 72 |
alter table subscriptions drop foreign key FK7674CAF67094B8E3; |
|---|
| 73 |
alter table synchdata drop foreign key FK1DF1CA577D9DCBFB; |
|---|
| 74 |
alter table synchinfo drop foreign key FK1DF43F5B7D9DCBFB; |
|---|
| 75 |
alter table synchstate drop foreign key FKA1233F847D9DCBFB; |
|---|
| 76 |
alter table synchstate drop foreign key FKA1233F84ECC95E3C; |
|---|
| 77 |
alter table timezones drop foreign key FK3A9B79A7094B8E3; |
|---|
| 78 |
alter table user_subscriptions drop foreign key FK5CFF898228D230A2; |
|---|
| 79 |
alter table user_subscriptions drop foreign key FK5CFF8982EA44079E; |
|---|
| 80 |
alter table user_views drop foreign key FK737824FA7CFB6A2A; |
|---|
| 81 |
alter table user_views drop foreign key FK737824FAEA44079E; |
|---|
| 82 |
alter table userinfo drop foreign key FKF02772F97D9DCBFB; |
|---|
| 83 |
alter table view_subscriptions drop foreign key FKBC37D2DC4C4D13FD; |
|---|
| 84 |
alter table view_subscriptions drop foreign key FKBC37D2DC28D230A2; |
|---|
| 85 |
alter table views drop foreign key FK6B01A6E7094B8E3; |
|---|
| 86 |
drop table if exists adminGroupMembers; |
|---|
| 87 |
drop table if exists adminGroups; |
|---|
| 88 |
drop table if exists alarm_attendees; |
|---|
| 89 |
drop table if exists alarms; |
|---|
| 90 |
drop table if exists attendees; |
|---|
| 91 |
drop table if exists auth; |
|---|
| 92 |
drop table if exists authprefCalendars; |
|---|
| 93 |
drop table if exists authprefCategories; |
|---|
| 94 |
drop table if exists authprefLocations; |
|---|
| 95 |
drop table if exists authprefSponsors; |
|---|
| 96 |
drop table if exists authprefs; |
|---|
| 97 |
drop table if exists bedework_settings; |
|---|
| 98 |
drop table if exists calendars; |
|---|
| 99 |
drop table if exists categories; |
|---|
| 100 |
drop table if exists eventAnnotations; |
|---|
| 101 |
drop table if exists event_annotation_attendees; |
|---|
| 102 |
drop table if exists event_annotation_categories; |
|---|
| 103 |
drop table if exists event_annotationexdates; |
|---|
| 104 |
drop table if exists event_annotationrdates; |
|---|
| 105 |
drop table if exists event_annotationrrules; |
|---|
| 106 |
drop table if exists event_attendees; |
|---|
| 107 |
drop table if exists event_categories; |
|---|
| 108 |
drop table if exists eventexdates; |
|---|
| 109 |
drop table if exists eventrdates; |
|---|
| 110 |
drop table if exists eventrrules; |
|---|
| 111 |
drop table if exists events; |
|---|
| 112 |
drop table if exists filter_categories; |
|---|
| 113 |
drop table if exists filter_creators; |
|---|
| 114 |
drop table if exists filter_locations; |
|---|
| 115 |
drop table if exists filter_sponsors; |
|---|
| 116 |
drop table if exists filters; |
|---|
| 117 |
drop table if exists locations; |
|---|
| 118 |
drop table if exists organizers; |
|---|
| 119 |
drop table if exists preferences; |
|---|
| 120 |
drop table if exists properties; |
|---|
| 121 |
drop table if exists recurrences; |
|---|
| 122 |
drop table if exists sponsors; |
|---|
| 123 |
drop table if exists subscriptions; |
|---|
| 124 |
drop table if exists synchdata; |
|---|
| 125 |
drop table if exists synchinfo; |
|---|
| 126 |
drop table if exists synchstate; |
|---|
| 127 |
drop table if exists timezones; |
|---|
| 128 |
drop table if exists todos; |
|---|
| 129 |
drop table if exists user_subscriptions; |
|---|
| 130 |
drop table if exists user_views; |
|---|
| 131 |
drop table if exists userinfo; |
|---|
| 132 |
drop table if exists users; |
|---|
| 133 |
drop table if exists view_subscriptions; |
|---|
| 134 |
drop table if exists views; |
|---|
| 135 |
create table adminGroupMembers ( |
|---|
| 136 |
groupid integer not null, |
|---|
| 137 |
memberid integer not null, |
|---|
| 138 |
member_is_group char(1) not null, |
|---|
| 139 |
primary key (groupid, memberid, member_is_group) |
|---|
| 140 |
) type=InnoDB; |
|---|
| 141 |
create table adminGroups ( |
|---|
| 142 |
userid integer not null auto_increment, |
|---|
| 143 |
seq integer not null, |
|---|
| 144 |
name text, |
|---|
| 145 |
description text, |
|---|
| 146 |
groupOwner integer not null, |
|---|
| 147 |
ownerid integer not null, |
|---|
| 148 |
primary key (userid) |
|---|
| 149 |
) type=InnoDB; |
|---|
| 150 |
create table alarm_attendees ( |
|---|
| 151 |
attendeeid integer not null, |
|---|
| 152 |
elt integer not null, |
|---|
| 153 |
primary key (attendeeid, elt) |
|---|
| 154 |
) type=InnoDB; |
|---|
| 155 |
create table alarms ( |
|---|
| 156 |
alarmid integer not null auto_increment, |
|---|
| 157 |
sequence integer not null, |
|---|
| 158 |
alarm_type integer, |
|---|
| 159 |
ownerid integer not null, |
|---|
| 160 |
trigger text, |
|---|
| 161 |
trigger_start char(1) not null, |
|---|
| 162 |
duration text, |
|---|
| 163 |
repeat integer, |
|---|
| 164 |
attach text, |
|---|
| 165 |
description text, |
|---|
| 166 |
summary text, |
|---|
| 167 |
trigger_time bigint, |
|---|
| 168 |
previous_trigger bigint, |
|---|
| 169 |
repeat_count integer, |
|---|
| 170 |
expired char(1) not null, |
|---|
| 171 |
eventid integer, |
|---|
| 172 |
todoid integer, |
|---|
| 173 |
primary key (alarmid) |
|---|
| 174 |
) type=InnoDB; |
|---|
| 175 |
create table attendees ( |
|---|
| 176 |
attendeeid integer not null auto_increment, |
|---|
| 177 |
sequence integer not null, |
|---|
| 178 |
cn text, |
|---|
| 179 |
cutype text, |
|---|
| 180 |
delegated_from text, |
|---|
| 181 |
delegated_to text, |
|---|
| 182 |
dir text, |
|---|
| 183 |
lang text, |
|---|
| 184 |
member text, |
|---|
| 185 |
rsvp char(1), |
|---|
| 186 |
role text, |
|---|
| 187 |
partstat text, |
|---|
| 188 |
sent_by text, |
|---|
| 189 |
attendee_uri text, |
|---|
| 190 |
primary key (attendeeid) |
|---|
| 191 |
) type=InnoDB; |
|---|
| 192 |
create table auth ( |
|---|
| 193 |
userid integer not null, |
|---|
| 194 |
usertype integer, |
|---|
| 195 |
primary key (userid) |
|---|
| 196 |
) type=InnoDB; |
|---|
| 197 |
create table authprefCalendars ( |
|---|
| 198 |
userid integer not null, |
|---|
| 199 |
calendarid integer, |
|---|
| 200 |
primary key (userid, calendarid) |
|---|
| 201 |
) type=InnoDB; |
|---|
| 202 |
create table authprefCategories ( |
|---|
| 203 |
userid integer not null, |
|---|
| 204 |
categoryid integer, |
|---|
| 205 |
primary key (userid, categoryid) |
|---|
| 206 |
) type=InnoDB; |
|---|
| 207 |
create table authprefLocations ( |
|---|
| 208 |
userid integer not null, |
|---|
| 209 |
locationid integer, |
|---|
| 210 |
primary key (userid, locationid) |
|---|
| 211 |
) type=InnoDB; |
|---|
| 212 |
create table authprefSponsors ( |
|---|
| 213 |
userid integer not null, |
|---|
| 214 |
sponsorid integer, |
|---|
| 215 |
primary key (userid, sponsorid) |
|---|
| 216 |
) type=InnoDB; |
|---|
| 217 |
create table authprefs ( |
|---|
| 218 |
userid integer not null, |
|---|
| 219 |
autoaddCategories char(1) not null, |
|---|
| 220 |
autoaddLocations char(1) not null, |
|---|
| 221 |
autoaddSponsors char(1) not null, |
|---|
| 222 |
autoaddCalendars char(1) not null, |
|---|
| 223 |
primary key (userid) |
|---|
| 224 |
) type=InnoDB; |
|---|
| 225 |
create table bedework_settings ( |
|---|
| 226 |
id integer not null auto_increment, |
|---|
| 227 |
seq integer not null, |
|---|
| 228 |
name text, |
|---|
| 229 |
tzid text, |
|---|
| 230 |
systemid text, |
|---|
| 231 |
publicCalendarRoot text, |
|---|
| 232 |
userCalendarRoot text, |
|---|
| 233 |
userDefaultCalendar text, |
|---|
| 234 |
defaultTrashCalendar text, |
|---|
| 235 |
userInbox text, |
|---|
| 236 |
userOutbox text, |
|---|
| 237 |
defaultUserViewName text, |
|---|
| 238 |
public_user text, |
|---|
| 239 |
http_connections_per_user integer, |
|---|
| 240 |
http_connections_per_host integer, |
|---|
| 241 |
http_connections integer, |
|---|
| 242 |
maxPublicDescriptionLength integer, |
|---|
| 243 |
maxUserDescriptionLength integer, |
|---|
| 244 |
maxUserEntitySize integer, |
|---|
| 245 |
defaultUserQuota bigint, |
|---|
| 246 |
userauth_class text, |
|---|
| 247 |
mailer_class text, |
|---|
| 248 |
admingroups_class text, |
|---|
| 249 |
usergroups_class text, |
|---|
| 250 |
primary key (id) |
|---|
| 251 |
) type=InnoDB; |
|---|
| 252 |
create table calendars ( |
|---|
| 253 |
id integer not null auto_increment, |
|---|
| 254 |
seq integer not null, |
|---|
| 255 |
creatorid integer not null, |
|---|
| 256 |
ownerid integer not null, |
|---|
| 257 |
access text, |
|---|
| 258 |
publick char(1) not null, |
|---|
| 259 |
name text not null, |
|---|
| 260 |
path text not null, |
|---|
| 261 |
summary text, |
|---|
| 262 |
description text, |
|---|
| 263 |
mail_list_id text, |
|---|
| 264 |
calendar_collection char(1) not null, |
|---|
| 265 |
parent integer, |
|---|
| 266 |
primary key (id) |
|---|
| 267 |
) type=InnoDB; |
|---|
| 268 |
create table categories ( |
|---|
| 269 |
categoryid integer not null auto_increment, |
|---|
| 270 |
seq integer not null, |
|---|
| 271 |
creatorid integer not null, |
|---|
| 272 |
ownerid integer not null, |
|---|
| 273 |
access text, |
|---|
| 274 |
publick char(1) not null, |
|---|
| 275 |
word varchar(255) not null, |
|---|
| 276 |
description text, |
|---|
| 277 |
primary key (categoryid), |
|---|
| 278 |
unique (ownerid, word) |
|---|
| 279 |
) type=InnoDB; |
|---|
| 280 |
create table eventAnnotations ( |
|---|
| 281 |
eventid integer not null auto_increment, |
|---|
| 282 |
seq integer not null, |
|---|
| 283 |
creatorid integer, |
|---|
| 284 |
ownerid integer, |
|---|
| 285 |
access text, |
|---|
| 286 |
publick char(1), |
|---|
| 287 |
start_date_type char(1), |
|---|
| 288 |
start_tzid varchar(255), |
|---|
| 289 |
start_dtval varchar(255), |
|---|
| 290 |
start_date varchar(255), |
|---|
| 291 |
end_date_type char(1), |
|---|
| 292 |
end_tzid varchar(255), |
|---|
| 293 |
end_dtval varchar(255), |
|---|
| 294 |
end_date varchar(255), |
|---|
| 295 |
duration varchar(255), |
|---|
| 296 |
end_type char(1), |
|---|
| 297 |
deleted char(1), |
|---|
| 298 |
summary varchar(255), |
|---|
| 299 |
description text, |
|---|
| 300 |
link varchar(255), |
|---|
| 301 |
status varchar(255), |
|---|
| 302 |
cost varchar(255), |
|---|
| 303 |
organizerid integer unique, |
|---|
| 304 |
calendarid integer, |
|---|
| 305 |
dtstamp varchar(255), |
|---|
| 306 |
lastmod varchar(255), |
|---|
| 307 |
created varchar(255), |
|---|
| 308 |
priority integer, |
|---|
| 309 |
sponsorid integer, |
|---|
| 310 |
locationid integer, |
|---|
| 311 |
eventname text, |
|---|
| 312 |
guid text, |
|---|
| 313 |
sequence integer, |
|---|
| 314 |
transparency text, |
|---|
| 315 |
categories_changed char(1), |
|---|
| 316 |
attendees_changed char(1), |
|---|
| 317 |
recurring char(1), |
|---|
| 318 |
recurrence_changed char(1), |
|---|
| 319 |
recurrence_id varchar(255), |
|---|
| 320 |
latest_date varchar(255), |
|---|
| 321 |
expanded char(1), |
|---|
| 322 |
targetid integer, |
|---|
| 323 |
masterid integer, |
|---|
| 324 |
primary key (eventid), |
|---|
| 325 |
unique (calendarid, guid(100), recurrence_id) |
|---|
| 326 |
) type=InnoDB; |
|---|
| 327 |
create table event_annotation_attendees ( |
|---|
| 328 |
attendeeid integer not null, |
|---|
| 329 |
elt integer not null, |
|---|
| 330 |
primary key (attendeeid, elt) |
|---|
| 331 |
) type=InnoDB; |
|---|
| 332 |
create table event_annotation_categories ( |
|---|
| 333 |
eventid integer not null, |
|---|
| 334 |
categoryid integer not null, |
|---|
| 335 |
primary key (eventid, categoryid) |
|---|
| 336 |
) type=InnoDB; |
|---|
| 337 |
create table event_annotationexdates ( |
|---|
| 338 |
eventid integer not null, |
|---|
| 339 |
exdate varchar(255) |
|---|
| 340 |
) type=InnoDB; |
|---|
| 341 |
create table event_annotationrdates ( |
|---|
| 342 |
eventid integer not null, |
|---|
| 343 |
rdate varchar(255) |
|---|
| 344 |
) type=InnoDB; |
|---|
| 345 |
create table event_annotationrrules ( |
|---|
| 346 |
eventid integer not null, |
|---|
| 347 |
rrule varchar(255) |
|---|
| 348 |
) type=InnoDB; |
|---|
| 349 |
create table event_attendees ( |
|---|
| 350 |
eventid integer not null, |
|---|
| 351 |
elt integer not null, |
|---|
| 352 |
primary key (eventid, elt) |
|---|
| 353 |
) type=InnoDB; |
|---|
| 354 |
create table event_categories ( |
|---|
| 355 |
eventid integer not null, |
|---|
| 356 |
categoryid integer not null, |
|---|
| 357 |
primary key (eventid, categoryid) |
|---|
| 358 |
) type=InnoDB; |
|---|
| 359 |
create table eventexdates ( |
|---|
| 360 |
eventid integer not null, |
|---|
| 361 |
exdate varchar(255) not null, |
|---|
| 362 |
primary key (eventid, exdate) |
|---|
| 363 |
) type=InnoDB; |
|---|
| 364 |
create table eventrdates ( |
|---|
| 365 |
eventid integer not null, |
|---|
| 366 |
rdate varchar(255) not null, |
|---|
| 367 |
primary key (eventid, rdate) |
|---|
| 368 |
) type=InnoDB; |
|---|
| 369 |
create table eventrrules ( |
|---|
| 370 |
eventid integer not null, |
|---|
| 371 |
rrule varchar(255) not null, |
|---|
| 372 |
primary key (eventid, rrule) |
|---|
| 373 |
) type=InnoDB; |
|---|
| 374 |
create table events ( |
|---|
| 375 |
eventid integer not null auto_increment, |
|---|
| 376 |
seq integer not null, |
|---|
| 377 |
creatorid integer not null, |
|---|
| 378 |
ownerid integer not null, |
|---|
| 379 |
access text, |
|---|
| 380 |
publick char(1) not null, |
|---|
| 381 |
start_date_type char(1) not null, |
|---|
| 382 |
start_tzid varchar(255), |
|---|
| 383 |
start_dtval varchar(255) not null, |
|---|
| 384 |
start_date varchar(255) not null, |
|---|
| 385 |
end_date_type char(1), |
|---|
| 386 |
end_tzid varchar(255), |
|---|
| 387 |
end_dtval varchar(255), |
|---|
| 388 |
end_date varchar(255), |
|---|
| 389 |
duration varchar(255), |
|---|
| 390 |
end_type char(1) not null, |
|---|
| 391 |
deleted char(1) not null, |
|---|
| 392 |
summary varchar(255) not null, |
|---|
| 393 |
description text, |
|---|
| 394 |
link varchar(255), |
|---|
| 395 |
status varchar(255), |
|---|
| 396 |
cost varchar(255), |
|---|
| 397 |
organizerid integer unique, |
|---|
| 398 |
calendarid integer, |
|---|
| 399 |
dtstamp varchar(255), |
|---|
| 400 |
lastmod varchar(255) not null, |
|---|
| 401 |
created varchar(255) not null, |
|---|
| 402 |
priority integer not null, |
|---|
| 403 |
sponsorid integer, |
|---|
| 404 |
locationid integer, |
|---|
| 405 |
eventname text, |
|---|
| 406 |
guid text, |
|---|
| 407 |
sequence integer, |
|---|
| 408 |
transparency text, |
|---|
| 409 |
categories_changed char(1) not null, |
|---|
| 410 |
attendees_changed char(1) not null, |
|---|
| 411 |
recurring char(1) not null, |
|---|
| 412 |
recurrence_changed char(1) not null, |
|---|
| 413 |
recurrence_id varchar(255), |
|---|
| 414 |
latest_date varchar(255), |
|---|
| 415 |
expanded char(1) not null, |
|---|
| 416 |
primary key (eventid), |
|---|
| 417 |
unique (calendarid, guid(100), recurrence_id) |
|---|
| 418 |
) type=InnoDB; |
|---|
| 419 |
create table filter_categories ( |
|---|
| 420 |
filterid integer not null, |
|---|
| 421 |
categoryid integer not null, |
|---|
| 422 |
primary key (filterid, categoryid) |
|---|
| 423 |
) type=InnoDB; |
|---|
| 424 |
create table filter_creators ( |
|---|
| 425 |
filterid integer not null, |
|---|
| 426 |
creatorid integer not null, |
|---|
| 427 |
primary key (filterid, creatorid) |
|---|
| 428 |
) type=InnoDB; |
|---|
| 429 |
create table filter_locations ( |
|---|
| 430 |
filterid integer not null, |
|---|
| 431 |
locationid integer not null, |
|---|
| 432 |
primary key (filterid, locationid) |
|---|
| 433 |
) type=InnoDB; |
|---|
| 434 |
create table filter_sponsors ( |
|---|
| 435 |
filterid integer not null, |
|---|
| 436 |
sponsorid integer not null, |
|---|
| 437 |
primary key (filterid, sponsorid) |
|---|
| 438 |
) type=InnoDB; |
|---|
| 439 |
create table filters ( |
|---|
| 440 |
filterid integer not null auto_increment, |
|---|
| 441 |
type char(1) not null, |
|---|
| 442 |
name varchar(200), |
|---|
| 443 |
description text, |
|---|
| 444 |
negated char(1) not null, |
|---|
| 445 |
ownerid integer not null, |
|---|
| 446 |
publick char(1) not null, |
|---|
| 447 |
parent integer, |
|---|
| 448 |
primary key (filterid) |
|---|
| 449 |
) type=InnoDB; |
|---|
| 450 |
create table locations ( |
|---|
| 451 |
entityid integer not null auto_increment, |
|---|
| 452 |
seq integer not null, |
|---|
| 453 |
creatorid integer not null, |
|---|
| 454 |
ownerid integer not null, |
|---|
| 455 |
access text, |
|---|
| 456 |
publick char(1) not null, |
|---|
| 457 |
address varchar(255) not null, |
|---|
| 458 |
subaddress varchar(255), |
|---|
| 459 |
link varchar(255), |
|---|
| 460 |
primary key (entityid), |
|---|
| 461 |
unique (ownerid, address) |
|---|
| 462 |
) type=InnoDB; |
|---|
| 463 |
create table organizers ( |
|---|
| 464 |
alarmid integer not null auto_increment, |
|---|
| 465 |
seq integer not null, |
|---|
| 466 |
cn text, |
|---|
| 467 |
dir text, |
|---|
| 468 |
language text, |
|---|
| 469 |
sent_by text, |
|---|
| 470 |
organizer_uri text, |
|---|
| 471 |
primary key (alarmid) |
|---|
| 472 |
) type=InnoDB; |
|---|
| 473 |
create table preferences ( |
|---|
| 474 |
prefid integer not null auto_increment, |
|---|
| 475 |
seq integer not null, |
|---|
| 476 |
ownerid integer not null unique, |
|---|
| 477 |
email varchar(255), |
|---|
| 478 |
default_calendarid integer, |
|---|
| 479 |
skin_name varchar(255), |
|---|
| 480 |
skin_style varchar(255), |
|---|
| 481 |
preferred_view varchar(255), |
|---|
| 482 |
preferred_view_period varchar(255), |
|---|
| 483 |
workdays varchar(255), |
|---|
| 484 |
workday_start integer, |
|---|
| 485 |
workday_end integer, |
|---|
| 486 |
preferred_endtype varchar(255), |
|---|
| 487 |
primary key (prefid) |
|---|
| 488 |
) type=InnoDB; |
|---|
| 489 |
create table properties ( |
|---|
| 490 |
user_info integer not null, |
|---|
| 491 |
name varchar(255) not null, |
|---|
| 492 |
val varchar(255), |
|---|
| 493 |
primary key (user_info, name) |
|---|
| 494 |
) type=InnoDB; |
|---|
| 495 |
create table recurrences ( |
|---|
| 496 |
recurrence_id varchar(255) not null, |
|---|
| 497 |
masterid integer not null, |
|---|
| 498 |
start_date_type char(1) not null, |
|---|
| 499 |
start_tzid varchar(255), |
|---|
| 500 |
start_dtval varchar(255) not null, |
|---|
| 501 |
start_date varchar(255) not null, |
|---|
| 502 |
end_date_type char(1), |
|---|
| 503 |
end_tzid varchar(255), |
|---|
| 504 |
end_dtval varchar(255), |
|---|
| 505 |
end_date varchar(255), |
|---|
| 506 |
overrideid integer, |
|---|
| 507 |
primary key (recurrence_id, masterid) |
|---|
| 508 |
) type=InnoDB; |
|---|
| 509 |
create table sponsors ( |
|---|
| 510 |
entityid integer not null auto_increment, |
|---|
| 511 |
seq integer not null, |
|---|
| 512 |
creatorid integer not null, |
|---|
| 513 |
ownerid integer not null, |
|---|
| 514 |
access text, |
|---|
| 515 |
publick char(1) not null, |
|---|
| 516 |
name varchar(255) not null, |
|---|
| 517 |
phone varchar(255), |
|---|
| 518 |
email varchar(255), |
|---|
| 519 |
link varchar(255), |
|---|
| 520 |
primary key (entityid), |
|---|
| 521 |
unique (ownerid, name) |
|---|
| 522 |
) type=InnoDB; |
|---|
| 523 |
create table subscriptions ( |
|---|
| 524 |
subscriptionid integer not null auto_increment, |
|---|
| 525 |
seq integer not null, |
|---|
| 526 |
name text not null, |
|---|
| 527 |
ownerid integer not null, |
|---|
| 528 |
uri text not null, |
|---|
| 529 |
affects_free_busy char(1) not null, |
|---|
| 530 |
display char(1) not null, |
|---|
| 531 |
internal_Subscription char(1) not null, |
|---|
| 532 |
calendar_deleted char(1) not null, |
|---|
| 533 |
unremoveable char(1) not null, |
|---|
| 534 |
primary key (subscriptionid) |
|---|
| 535 |
) type=InnoDB; |
|---|
| 536 |
create table synchdata ( |
|---|
| 537 |
userid integer not null, |
|---|
| 538 |
eventid integer not null, |
|---|
| 539 |
eventData text, |
|---|
| 540 |
primary key (userid, eventid) |
|---|
| 541 |
) type=InnoDB; |
|---|
| 542 |
create table synchinfo ( |
|---|
| 543 |
userid integer not null, |
|---|
| 544 |
deviceid varchar(255) not null, |
|---|
| 545 |
calendarid integer, |
|---|
| 546 |
lastsynch varchar(255), |
|---|
| 547 |
primary key (userid, deviceid) |
|---|
| 548 |
) type=InnoDB; |
|---|
| 549 |
create table synchstate ( |
|---|
| 550 |
userid integer not null, |
|---|
| 551 |
deviceid varchar(255) not null, |
|---|
| 552 |
eventid integer not null, |
|---|
| 553 |
guid varchar(255), |
|---|
| 554 |
state integer, |
|---|
| 555 |
primary key (userid, deviceid, eventid) |
|---|
| 556 |
) type=InnoDB; |
|---|
| 557 |
create table timezones ( |
|---|
| 558 |
id integer not null auto_increment, |
|---|
| 559 |
tzid varchar(255) not null, |
|---|
| 560 |
ownerid integer not null, |
|---|
| 561 |
publick char(1) not null, |
|---|
| 562 |
vtimezone text, |
|---|
| 563 |
jtzid varchar(255), |
|---|
| 564 |
primary key (id), |
|---|
| 565 |
unique (tzid, ownerid) |
|---|
| 566 |
) type=InnoDB; |
|---|
| 567 |
create table todos ( |
|---|
| 568 |
todoid integer not null auto_increment, |
|---|
| 569 |
start_date_type char(1) not null, |
|---|
| 570 |
start_tzid varchar(255), |
|---|
| 571 |
start_dtval varchar(255) not null, |
|---|
| 572 |
start_date varchar(255) not null, |
|---|
| 573 |
primary key (todoid) |
|---|
| 574 |
) type=InnoDB; |
|---|
| 575 |
create table user_subscriptions ( |
|---|
| 576 |
prefid integer not null, |
|---|
| 577 |
elt integer not null, |
|---|
| 578 |
primary key (prefid, elt) |
|---|
| 579 |
) type=InnoDB; |
|---|
| 580 |
create table user_views ( |
|---|
| 581 |
prefid integer not null, |
|---|
| 582 |
elt integer not null, |
|---|
| 583 |
primary key (prefid, elt) |
|---|
| 584 |
) type=InnoDB; |
|---|
| 585 |
create table userinfo ( |
|---|
| 586 |
userid integer not null, |
|---|
| 587 |
lastname varchar(255), |
|---|
| 588 |
firstname varchar(255), |
|---|
| 589 |
phone varchar(255), |
|---|
| 590 |
email varchar(255), |
|---|
| 591 |
department varchar(255), |
|---|
| 592 |
primary key (userid) |
|---|
| 593 |
) type=InnoDB; |
|---|
| 594 |
create table users ( |
|---|
| 595 |
userid integer not null auto_increment, |
|---|
| 596 |
seq integer not null, |
|---|
| 597 |
username varchar(20) not null, |
|---|
| 598 |
instance_owner char(1) not null, |
|---|
| 599 |
created datetime, |
|---|
| 600 |
last_logon datetime, |
|---|
| 601 |
last_access datetime, |
|---|
| 602 |
last_modify datetime, |
|---|
| 603 |
category_access text, |
|---|
| 604 |
sponsor_access text, |
|---|
| 605 |
location_access text, |
|---|
| 606 |
quota bigint, |
|---|
| 607 |
primary key (userid), |
|---|
| 608 |
unique (username) |
|---|
| 609 |
) type=InnoDB; |
|---|
| 610 |
create table view_subscriptions ( |
|---|
| 611 |
viewid integer not null, |
|---|
| 612 |
elt integer not null, |
|---|
| 613 |
primary key (viewid, elt) |
|---|
| 614 |
) type=InnoDB; |
|---|
| 615 |
create table views ( |
|---|
| 616 |
viewid integer not null auto_increment, |
|---|
| 617 |
seq integer not null, |
|---|
| 618 |
name text not null, |
|---|
| 619 |
ownerid integer not null, |
|---|
| 620 |
primary key (viewid) |
|---|
| 621 |
) type=InnoDB; |
|---|
| 622 |
alter table adminGroupMembers |
|---|
| 623 |
add index FK3D8EC689891E4122 (groupid), |
|---|
| 624 |
add constraint FK3D8EC689891E4122 |
|---|
| 625 |
foreign key (groupid) |
|---|
| 626 |
references adminGroups (userid); |
|---|
| 627 |
alter table adminGroups |
|---|
| 628 |
add index FKCE66D203FCC6CD69 (groupOwner), |
|---|
| 629 |
add constraint FKCE66D203FCC6CD69 |
|---|
| 630 |
foreign key (groupOwner) |
|---|
| 631 |
references users (userid); |
|---|
| 632 |
alter table adminGroups |
|---|
| 633 |
add index FKCE66D2037094B8E3 (ownerid), |
|---|
| 634 |
add constraint FKCE66D2037094B8E3 |
|---|
| 635 |
foreign key (ownerid) |
|---|
| 636 |
references users (userid); |
|---|
| 637 |
alter table alarm_attendees |
|---|
| 638 |
add index FK19F64E8B4E9CEE71 (elt), |
|---|
| 639 |
add constraint FK19F64E8B4E9CEE71 |
|---|
| 640 |
foreign key (elt) |
|---|
| 641 |
references attendees (attendeeid); |
|---|
| 642 |
alter table alarm_attendees |
|---|
| 643 |
add index FK19F64E8BAEDD20DC (attendeeid), |
|---|
| 644 |
add constraint FK19F64E8BAEDD20DC |
|---|
| 645 |
foreign key (attendeeid) |
|---|
| 646 |
references alarms (alarmid); |
|---|
| 647 |
create index valarms_user on alarms (ownerid); |
|---|
| 648 |
alter table alarms |
|---|
| 649 |
add index FKABA5D0427094B8E3 (ownerid), |
|---|
| 650 |
add constraint FKABA5D0427094B8E3 |
|---|
| 651 |
foreign key (ownerid) |
|---|
| 652 |
references users (userid); |
|---|
| 653 |
alter table alarms |
|---|
| 654 |
add index FKABA5D0427BAF9231 (todoid), |
|---|
| 655 |
add constraint FKABA5D0427BAF9231 |
|---|
| 656 |
foreign key (todoid) |
|---|
| 657 |
references todos (todoid); |
|---|
| 658 |
alter table alarms |
|---|
| 659 |
add index FKABA5D042ECC95E3C (eventid), |
|---|
| 660 |
add constraint FKABA5D042ECC95E3C |
|---|
| 661 |
foreign key (eventid) |
|---|
| 662 |
references events (eventid); |
|---|
| 663 |
alter table auth |
|---|
| 664 |
add index FK2DDDA87D9DCBFB (userid), |
|---|
| 665 |
add constraint FK2DDDA87D9DCBFB |
|---|
| 666 |
foreign key (userid) |
|---|
| 667 |
references users (userid); |
|---|
| 668 |
alter table authprefCalendars |
|---|
| 669 |
add index FK296C356A3D2DC521 (calendarid), |
|---|
| 670 |
add constraint FK296C356A3D2DC521 |
|---|
| 671 |
foreign key (calendarid) |
|---|
| 672 |
references calendars (id); |
|---|
| 673 |
alter table authprefCalendars |
|---|
| 674 |
add index FK296C356A6D224B2B (userid), |
|---|
| 675 |
add constraint FK296C356A6D224B2B |
|---|
| 676 |
foreign key (userid) |
|---|
| 677 |
references authprefs (userid); |
|---|
| 678 |
alter table authprefCategories |
|---|
| 679 |
add index FK37D48C477E8BD8A1 (categoryid), |
|---|
| 680 |
add constraint FK37D48C477E8BD8A1 |
|---|
| 681 |
foreign key (categoryid) |
|---|
| 682 |
references categories (categoryid); |
|---|
| 683 |
alter table authprefCategories |
|---|
| 684 |
add index FK37D48C476D224B2B (userid), |
|---|
| 685 |
add constraint FK37D48C476D224B2B |
|---|
| 686 |
foreign key (userid) |
|---|
| 687 |
references authprefs (userid); |
|---|
| 688 |
alter table authprefLocations |
|---|
| 689 |
add index FK2B901FD36D224B2B (userid), |
|---|
| 690 |
add constraint FK2B901FD36D224B2B |
|---|
| 691 |
foreign key (userid) |
|---|
| 692 |
references authprefs (userid); |
|---|
| 693 |
alter table authprefLocations |
|---|
| 694 |
add index FK2B901FD3FB77CC4F (locationid), |
|---|
| 695 |
add constraint FK2B901FD3FB77CC4F |
|---|
| 696 |
foreign key (locationid) |
|---|
| 697 |
references locations (entityid); |
|---|
| 698 |
alter table authprefSponsors |
|---|
| 699 |
add index FK7D7DE5845A307285 (sponsorid), |
|---|
| 700 |
add constraint FK7D7DE5845A307285 |
|---|
| 701 |
foreign key (sponsorid) |
|---|
| 702 |
references sponsors (entityid); |
|---|
| 703 |
alter table authprefSponsors |
|---|
| 704 |
add index FK7D7DE5846D224B2B (userid), |
|---|
| 705 |
add constraint FK7D7DE5846D224B2B |
|---|
| 706 |
foreign key (userid) |
|---|
| 707 |
references authprefs (userid); |
|---|
| 708 |
create index cal_creator on calendars (creatorid); |
|---|
| 709 |
create index cal_owner on calendars (ownerid); |
|---|
| 710 |
create index calpath on calendars (path(100)); |
|---|
| 711 |
alter table calendars |
|---|
| 712 |
add index FKB6806CF57094B8E3 (ownerid), |
|---|
| 713 |
add constraint FKB6806CF57094B8E3 |
|---|
| 714 |
foreign key (ownerid) |
|---|
| 715 |
references users (userid); |
|---|
| 716 |
alter table calendars |
|---|
| 717 |
add index FKB6806CF5E84B9CF2 (parent), |
|---|
| 718 |
add constraint FKB6806CF5E84B9CF2 |
|---|
| 719 |
foreign key (parent) |
|---|
| 720 |
references calendars (id); |
|---|
| 721 |
alter table calendars |
|---|
| 722 |
add index FKB6806CF5D321CC1C (creatorid), |
|---|
| 723 |
add constraint FKB6806CF5D321CC1C |
|---|
| 724 |
foreign key (creatorid) |
|---|
| 725 |
references users (userid); |
|---|
| 726 |
create index cat_word on categories (word); |
|---|
| 727 |
create index idx_cat_owner on categories (ownerid); |
|---|
| 728 |
create index idx_cat_creator on categories (creatorid); |
|---|
| 729 |
alter table categories |
|---|
| 730 |
add index FK4D47461C7094B8E3 (ownerid), |
|---|
| 731 |
add constraint FK4D47461C7094B8E3 |
|---|
| 732 |
foreign key (ownerid) |
|---|
| 733 |
references users (userid); |
|---|
| 734 |
alter table categories |
|---|
| 735 |
add index FK4D47461CD321CC1C (creatorid), |
|---|
| 736 |
add constraint FK4D47461CD321CC1C |
|---|
| 737 |
foreign key (creatorid) |
|---|
| 738 |
references users (userid); |
|---|
| 739 |
create index idx_eventann_calendar on eventAnnotations (calendarid); |
|---|
| 740 |
create index idx_eventann_location on eventAnnotations (locationid); |
|---|
| 741 |
create index idx_eventann_sponsor on eventAnnotations (sponsorid); |
|---|
| 742 |
create index sidx_eventann_owner on eventAnnotations (ownerid); |
|---|
| 743 |
create index idx_eventann_creator on eventAnnotations (creatorid); |
|---|
| 744 |
create index idx_eventann_deleted on eventAnnotations (deleted); |
|---|
| 745 |
create index idx_eventann_expanded on eventAnnotations (expanded); |
|---|
| 746 |
create index idx_eventann_end on eventAnnotations (end_date); |
|---|
| 747 |
create index idx_eventann_start on eventAnnotations (start_date); |
|---|
| 748 |
create index idx_eventann_latest_date on eventAnnotations (latest_date); |
|---|
| 749 |
create index idx_eventann_recurring on eventAnnotations (recurring); |
|---|
| 750 |
alter table eventAnnotations |
|---|
| 751 |
add index FKA912EC2A5A307285 (sponsorid), |
|---|
| 752 |
add constraint FKA912EC2A5A307285 |
|---|
| 753 |
foreign key (sponsorid) |
|---|
| 754 |
references sponsors (entityid); |
|---|
| 755 |
alter table eventAnnotations |
|---|
| 756 |
add index FKA912EC2A7094B8E3 (ownerid), |
|---|
| 757 |
add constraint FKA912EC2A7094B8E3 |
|---|
| 758 |
foreign key (ownerid) |
|---|
| 759 |
references users (userid); |
|---|
| 760 |
alter table eventAnnotations |
|---|
| 761 |
add index FKA912EC2A3D2DC521 (calendarid), |
|---|
| 762 |
add constraint FKA912EC2A3D2DC521 |
|---|
| 763 |
foreign key (calendarid) |
|---|
| 764 |
references calendars (id); |
|---|
| 765 |
alter table eventAnnotations |
|---|
| 766 |
add index FKA912EC2AD321CC1C (creatorid), |
|---|
| 767 |
add constraint FKA912EC2AD321CC1C |
|---|
| 768 |
foreign key (creatorid) |
|---|
| 769 |
references users (userid); |
|---|
| 770 |
alter table eventAnnotations |
|---|
| 771 |
add index FKA912EC2A4FC14404 (masterid), |
|---|
| 772 |
add constraint FKA912EC2A4FC14404 |
|---|
| 773 |
foreign key (masterid) |
|---|
| 774 |
references events (eventid); |
|---|
| 775 |
alter table eventAnnotations |
|---|
| 776 |
add index FKA912EC2A247D7B73 (targetid), |
|---|
| 777 |
add constraint FKA912EC2A247D7B73 |
|---|
| 778 |
foreign key (targetid) |
|---|
| 779 |
references events (eventid); |
|---|
| 780 |
alter table eventAnnotations |
|---|
| 781 |
add index FKA912EC2AFB77CC4F (locationid), |
|---|
| 782 |
add constraint FKA912EC2AFB77CC4F |
|---|
| 783 |
foreign key (locationid) |
|---|
| 784 |
references locations (entityid); |
|---|
| 785 |
alter table eventAnnotations |
|---|
| 786 |
add index FKA912EC2AEB04EBEF (organizerid), |
|---|
| 787 |
add constraint FKA912EC2AEB04EBEF |
|---|
| 788 |
foreign key (organizerid) |
|---|
| 789 |
references organizers (alarmid); |
|---|
| 790 |
alter table event_annotation_attendees |
|---|
| 791 |
add index FK7D0DEE6E4E9CEE71 (elt), |
|---|
| 792 |
add constraint FK7D0DEE6E4E9CEE71 |
|---|
| 793 |
foreign key (elt) |
|---|
| 794 |
references attendees (attendeeid); |
|---|
| 795 |
alter table event_annotation_attendees |
|---|
| 796 |
add index FK7D0DEE6E13EADC74 (attendeeid), |
|---|
| 797 |
add constraint FK7D0DEE6E13EADC74 |
|---|
| 798 |
foreign key (attendeeid) |
|---|
| 799 |
references eventAnnotations (eventid); |
|---|
| 800 |
alter table event_annotation_categories |
|---|
| 801 |
add index FKDD91477E8BD8A1 (categoryid), |
|---|
| 802 |
add constraint FKDD91477E8BD8A1 |
|---|
| 803 |
foreign key (categoryid) |
|---|
| 804 |
references categories (categoryid); |
|---|
| 805 |
alter table event_annotation_categories |
|---|
| 806 |
add index FKDD914750C58A54 (eventid), |
|---|
| 807 |
add constraint FKDD914750C58A54 |
|---|
| 808 |
foreign key (eventid) |
|---|
| 809 |
references eventAnnotations (eventid); |
|---|
| 810 |
alter table event_annotationexdates |
|---|
| 811 |
add index FK38128D3E50C58A54 (eventid), |
|---|
| 812 |
add constraint FK38128D3E50C58A54 |
|---|
| 813 |
foreign key (eventid) |
|---|
| 814 |
references eventAnnotations (eventid); |
|---|
| 815 |
alter table event_annotationrdates |
|---|
| 816 |
add index FK2767404750C58A54 (eventid), |
|---|
| 817 |
add constraint FK2767404750C58A54 |
|---|
| 818 |
foreign key (eventid) |
|---|
| 819 |
references eventAnnotations (eventid); |
|---|
| 820 |
alter table event_annotationrrules |
|---|
| 821 |
add index FK283582B950C58A54 (eventid), |
|---|
| 822 |
add constraint FK283582B950C58A54 |
|---|
| 823 |
foreign key (eventid) |
|---|
| 824 |
references eventAnnotations (eventid); |
|---|
| 825 |
alter table event_attendees |
|---|
| 826 |
add index FK1943F944E9CEE71 (elt), |
|---|
| 827 |
add constraint FK1943F944E9CEE71 |
|---|
| 828 |
foreign key (elt) |
|---|
| 829 |
references attendees (attendeeid); |
|---|
| 830 |
alter table event_attendees |
|---|
| 831 |
add index FK1943F94ECC95E3C (eventid), |
|---|
| 832 |
add constraint FK1943F94ECC95E3C |
|---|
| 833 |
foreign key (eventid) |
|---|
| 834 |
references events (eventid); |
|---|
| 835 |
alter table event_categories |
|---|
| 836 |
add index FKD2164E17E8BD8A1 (categoryid), |
|---|
| 837 |
add constraint FKD2164E17E8BD8A1 |
|---|
| 838 |
foreign key (categoryid) |
|---|
| 839 |
references categories (categoryid); |
|---|
| 840 |
alter table event_categories |
|---|
| 841 |
add index FKD2164E1ECC95E3C (eventid), |
|---|
| 842 |
add constraint FKD2164E1ECC95E3C |
|---|
| 843 |
foreign key (eventid) |
|---|
| 844 |
references events (eventid); |
|---|
| 845 |
alter table eventexdates |
|---|
| 846 |
add index FK84343DD8ECC95E3C (eventid), |
|---|
| 847 |
add constraint FK84343DD8ECC95E3C |
|---|
| 848 |
foreign key (eventid) |
|---|
| 849 |
references events (eventid); |
|---|
| 850 |
alter table eventrdates |
|---|
| 851 |
add index FK3A60146DECC95E3C (eventid), |
|---|
| 852 |
add constraint FK3A60146DECC95E3C |
|---|
| 853 |
foreign key (eventid) |
|---|
| 854 |
references events (eventid); |
|---|
| 855 |
alter table eventrrules |
|---|
| 856 |
add index FK3B2E56DFECC95E3C (eventid), |
|---|
| 857 |
add constraint FK3B2E56DFECC95E3C |
|---|
| 858 |
foreign key (eventid) |
|---|
| 859 |
references events (eventid); |
|---|
| 860 |
create index idx_event_expanded on events (expanded); |
|---|
| 861 |
create index sidx_event_owner on events (ownerid); |
|---|
| 862 |
create index eli on events (locationid); |
|---|
| 863 |
create index esi on events (sponsorid); |
|---|
| 864 |
create index idx_event_calendar on events (calendarid); |
|---|
| 865 |
create index idx_event_end on events (end_date); |
|---|
| 866 |
create index idx_event_creator on events (creatorid); |
|---|
| 867 |
create index idx_event_start on events (start_date); |
|---|
| 868 |
create index idx_event_deleted on events (deleted); |
|---|
| 869 |
create index idx_event_recurring on events (recurring); |
|---|
| 870 |
create index idx_event_latest_date on events (latest_date); |
|---|
| 871 |
alter table events |
|---|
| 872 |
add index FKB307E1195A307285 (sponsorid), |
|---|
| 873 |
add constraint FKB307E1195A307285 |
|---|
| 874 |
foreign key (sponsorid) |
|---|
| 875 |
references sponsors (entityid); |
|---|
| 876 |
alter table events |
|---|
| 877 |
add index FKB307E1197094B8E3 (ownerid), |
|---|
| 878 |
add constraint FKB307E1197094B8E3 |
|---|
| 879 |
foreign key (ownerid) |
|---|
| 880 |
references users (userid); |
|---|
| 881 |
alter table events |
|---|
| 882 |
add index FKB307E1193D2DC521 (calendarid), |
|---|
| 883 |
add constraint FKB307E1193D2DC521 |
|---|
| 884 |
foreign key (calendarid) |
|---|
| 885 |
references calendars (id); |
|---|
| 886 |
alter table events |
|---|
| 887 |
add index FKB307E119D321CC1C (creatorid), |
|---|
| 888 |
add constraint FKB307E119D321CC1C |
|---|
| 889 |
foreign key (creatorid) |
|---|
| 890 |
references users (userid); |
|---|
| 891 |
alter table events |
|---|
| 892 |
add index FKB307E119FB77CC4F (locationid), |
|---|
| 893 |
add constraint FKB307E119FB77CC4F |
|---|
| 894 |
foreign key (locationid) |
|---|
| 895 |
references locations (entityid); |
|---|
| 896 |
alter table events |
|---|
| 897 |
add index FKB307E119EB04EBEF (organizerid), |
|---|
| 898 |
add constraint FKB307E119EB04EBEF |
|---|
| 899 |
foreign key (organizerid) |
|---|
| 900 |
references organizers (alarmid); |
|---|
| 901 |
alter table filter_categories |
|---|
| 902 |
add index FKFE8575438A948DF (filterid), |
|---|
| 903 |
add constraint FKFE8575438A948DF |
|---|
| 904 |
foreign key (filterid) |
|---|
| 905 |
references filters (filterid); |
|---|
| 906 |
alter table filter_categories |
|---|
| 907 |
add index FKFE8575437E8BD8A1 (categoryid), |
|---|
| 908 |
add constraint FKFE8575437E8BD8A1 |
|---|
| 909 |
foreign key (categoryid) |
|---|
| 910 |
references categories (categoryid); |
|---|
| 911 |
alter table filter_creators |
|---|
| 912 |
add index FK85FF52AEF90D3261 (filterid), |
|---|
| 913 |
add constraint FK85FF52AEF90D3261 |
|---|
| 914 |
foreign key (filterid) |
|---|
| 915 |
references filters (filterid); |
|---|
| 916 |
alter table filter_creators |
|---|
| 917 |
add index FK85FF52AED321CC1C (creatorid), |
|---|
| 918 |
add constraint FK85FF52AED321CC1C |
|---|
| 919 |
foreign key (creatorid) |
|---|
| 920 |
references users (userid); |
|---|
| 921 |
alter table filter_locations |
|---|
| 922 |
add index FKCEE027579ED90656 (filterid), |
|---|
| 923 |
add constraint FKCEE027579ED90656 |
|---|
| 924 |
foreign key (filterid) |
|---|
| 925 |
references filters (filterid); |
|---|
| 926 |
alter table filter_locations |
|---|
| 927 |
add index FKCEE02757FB77CC4F (locationid), |
|---|
| 928 |
add constraint FKCEE02757FB77CC4F |
|---|
| 929 |
foreign key (locationid) |
|---|
| 930 |
references locations (entityid); |
|---|
| 931 |
alter table filter_sponsors |
|---|
| 932 |
add index FKAC0CDD805A307285 (sponsorid), |
|---|
| 933 |
add constraint FKAC0CDD805A307285 |
|---|
| 934 |
foreign key (sponsorid) |
|---|
| 935 |
references sponsors (entityid); |
|---|
| 936 |
alter table filter_sponsors |
|---|
| 937 |
add index FKAC0CDD80763F9ACF (filterid), |
|---|
| 938 |
add constraint FKAC0CDD80763F9ACF |
|---|
| 939 |
foreign key (filterid) |
|---|
| 940 |
references filters (filterid); |
|---|
| 941 |
create index calowner on filters (ownerid); |
|---|
| 942 |
create index calpub on filters (publick); |
|---|
| 943 |
alter table filters |
|---|
| 944 |
add index FKCD10A3FB7094B8E3 (ownerid), |
|---|
| 945 |
add constraint FKCD10A3FB7094B8E3 |
|---|
| 946 |
foreign key (ownerid) |
|---|
| 947 |
references users (userid); |
|---|
| 948 |
alter table filters |
|---|
| 949 |
add index FKCD10A3FBA562A89B (parent), |
|---|
| 950 |
add constraint FKCD10A3FBA562A89B |
|---|
| 951 |
foreign key (parent) |
|---|
| 952 |
references filters (filterid); |
|---|
| 953 |
alter table filters |
|---|
| 954 |
add index FKCD10A3FB36B842E3 (parent), |
|---|
| 955 |
add constraint FKCD10A3FB36B842E3 |
|---|
| 956 |
foreign key (parent) |
|---|
| 957 |
references filters (filterid); |
|---|
| 958 |
alter table filters |
|---|
| 959 |
add index FKCD10A3FBBA2D9A58 (parent), |
|---|
| 960 |
add constraint FKCD10A3FBBA2D9A58 |
|---|
| 961 |
foreign key (parent) |
|---|
| 962 |
references filters (filterid); |
|---|
| 963 |
create index location_creator on locations (creatorid); |
|---|
| 964 |
create index location_owner on locations (ownerid); |
|---|
| 965 |
alter table locations |
|---|
| 966 |
add index FKB8A4575E7094B8E3 (ownerid), |
|---|
| 967 |
add constraint FKB8A4575E7094B8E3 |
|---|
| 968 |
foreign key (ownerid) |
|---|
| 969 |
references users (userid); |
|---|
| 970 |
alter table locations |
|---|
| 971 |
add index FKB8A4575ED321CC1C (creatorid), |
|---|
| 972 |
add constraint FKB8A4575ED321CC1C |
|---|
| 973 |
foreign key (creatorid) |
|---|
| 974 |
references users (userid); |
|---|
| 975 |
create index prefowner on preferences (ownerid); |
|---|
| 976 |
alter table preferences |
|---|
| 977 |
add index FK769ADEF87094B8E3 (ownerid), |
|---|
| 978 |
add constraint FK769ADEF87094B8E3 |
|---|
| 979 |
foreign key (ownerid) |
|---|
| 980 |
references users (userid); |
|---|
| 981 |
alter table preferences |
|---|
| 982 |
add index FK769ADEF85C7181DF (default_calendarid), |
|---|
| 983 |
add constraint FK769ADEF85C7181DF |
|---|
| 984 |
foreign key (default_calendarid) |
|---|
| 985 |
references calendars (id); |
|---|
| 986 |
alter table properties |
|---|
| 987 |
add index FKC8CD8D33329258C5 (user_info), |
|---|
| 988 |
add constraint FKC8CD8D33329258C5 |
|---|
| 989 |
foreign key (user_info) |
|---|
| 990 |
references userinfo (userid); |
|---|
| 991 |
create index idx_recur_end on recurrences (end_date); |
|---|
| 992 |
create index idx_recur_start on recurrences (start_date); |
|---|
| 993 |
alter table recurrences |
|---|
| 994 |
add index FKD6034B433910AF06 (overrideid), |
|---|
| 995 |
add constraint FKD6034B433910AF06 |
|---|
| 996 |
foreign key (overrideid) |
|---|
| 997 |
references eventAnnotations (eventid); |
|---|
| 998 |
alter table recurrences |
|---|
| 999 |
add index FKD6034B434FC14404 (masterid), |
|---|
| 1000 |
add constraint FKD6034B434FC14404 |
|---|
| 1001 |
foreign key (masterid) |
|---|
| 1002 |
references events (eventid); |
|---|
| 1003 |
create index idx_sp_creator on sponsors (creatorid); |
|---|
| 1004 |
create index idx_sp_owner on sponsors (ownerid); |
|---|
| 1005 |
alter table sponsors |
|---|
| 1006 |
add index FK928F10997094B8E3 (ownerid), |
|---|
| 1007 |
add constraint FK928F10997094B8E3 |
|---|
| 1008 |
foreign key (ownerid) |
|---|
| 1009 |
references users (userid); |
|---|
| 1010 |
alter table sponsors |
|---|
| 1011 |
add index FK928F1099D321CC1C (creatorid), |
|---|
| 1012 |
add constraint FK928F1099D321CC1C |
|---|
| 1013 |
foreign key (creatorid) |
|---|
| 1014 |
references users (userid); |
|---|
| 1015 |
create index subscriptionowner on subscriptions (ownerid); |
|---|
| 1016 |
alter table subscriptions |
|---|
| 1017 |
add index FK7674CAF67094B8E3 (ownerid), |
|---|
| 1018 |
add constraint FK7674CAF67094B8E3 |
|---|
| 1019 |
foreign key (ownerid) |
|---|
| 1020 |
references users (userid); |
|---|
| 1021 |
alter table synchdata |
|---|
| 1022 |
add index FK1DF1CA577D9DCBFB (userid), |
|---|
| 1023 |
add constraint FK1DF1CA577D9DCBFB |
|---|
| 1024 |
foreign key (userid) |
|---|
| 1025 |
references users (userid); |
|---|
| 1026 |
alter table synchinfo |
|---|
| 1027 |
add index FK1DF43F5B7D9DCBFB (userid), |
|---|
| 1028 |
add constraint FK1DF43F5B7D9DCBFB |
|---|
| 1029 |
foreign key (userid) |
|---|
| 1030 |
references users (userid); |
|---|
| 1031 |
alter table synchstate |
|---|
| 1032 |
add index FKA1233F847D9DCBFB (userid), |
|---|
| 1033 |
add constraint FKA1233F847D9DCBFB |
|---|
| 1034 |
foreign key (userid) |
|---|
| 1035 |
references users (userid); |
|---|
| 1036 |
alter table synchstate |
|---|
| 1037 |
add index FKA1233F84ECC95E3C (eventid), |
|---|
| 1038 |
add constraint FKA1233F84ECC95E3C |
|---|
| 1039 |
foreign key (eventid) |
|---|
| 1040 |
references events (eventid); |
|---|
| 1041 |
create index timezoneowner on timezones (ownerid); |
|---|
| 1042 |
alter table timezones |
|---|
| 1043 |
add index FK3A9B79A7094B8E3 (ownerid), |
|---|
| 1044 |
add constraint FK3A9B79A7094B8E3 |
|---|
| 1045 |
foreign key (ownerid) |
|---|
| 1046 |
references users (userid); |
|---|
| 1047 |
alter table user_subscriptions |
|---|
| 1048 |
add index FK5CFF898228D230A2 (elt), |
|---|
| 1049 |
add constraint FK5CFF898228D230A2 |
|---|
| 1050 |
foreign key (elt) |
|---|
| 1051 |
references subscriptions (subscriptionid); |
|---|
| 1052 |
alter table user_subscriptions |
|---|
| 1053 |
add index FK5CFF8982EA44079E (prefid), |
|---|
| 1054 |
add constraint FK5CFF8982EA44079E |
|---|
| 1055 |
foreign key (prefid) |
|---|
| 1056 |
references preferences (prefid); |
|---|
| 1057 |
alter table user_views |
|---|
| 1058 |
add index FK737824FA7CFB6A2A (elt), |
|---|
| 1059 |
add constraint FK737824FA7CFB6A2A |
|---|
| 1060 |
foreign key (elt) |
|---|
| 1061 |
references views (viewid); |
|---|
| 1062 |
alter table user_views |
|---|
| 1063 |
add index FK737824FAEA44079E (prefid), |
|---|
| 1064 |
add constraint FK737824FAEA44079E |
|---|
| 1065 |
foreign key (prefid) |
|---|
| 1066 |
references preferences (prefid); |
|---|
| 1067 |
alter table userinfo |
|---|
| 1068 |
add index FKF02772F97D9DCBFB (userid), |
|---|
| 1069 |
add constraint FKF02772F97D9DCBFB |
|---|
| 1070 |
foreign key (userid) |
|---|
| 1071 |
references users (userid); |
|---|
| 1072 |
create index idx_user_instance_owner on users (instance_owner); |
|---|
| 1073 |
alter table view_subscriptions |
|---|
| 1074 |
add index FKBC37D2DC4C4D13FD (viewid), |
|---|
| 1075 |
add constraint FKBC37D2DC4C4D13FD |
|---|
| 1076 |
foreign key (viewid) |
|---|
| 1077 |
references views (viewid); |
|---|
| 1078 |
alter table view_subscriptions |
|---|
| 1079 |
add index FKBC37D2DC28D230A2 (elt), |
|---|
| 1080 |
add constraint FKBC37D2DC28D230A2 |
|---|
| 1081 |
foreign key (elt) |
|---|
| 1082 |
references subscriptions (subscriptionid); |
|---|
| 1083 |
create index viewowner on views (ownerid); |
|---|
| 1084 |
alter table views |
|---|
| 1085 |
add index FK6B01A6E7094B8E3 (ownerid), |
|---|
| 1086 |
add constraint FK6B01A6E7094B8E3 |
|---|
| 1087 |
foreign key (ownerid) |
|---|
| 1088 |
references users (userid); |
|---|