| 1 | == Procédure de migration de la version 2.2 à la version 2.3 == |
| 2 | |
| 3 | === Migration de la base de données === |
| 4 | La structure de la base de données a été légèrement modifiée entre les 2 versions. |
| 5 | |
| 6 | |
| 7 | Le script suivant permet d'ajouter les nouvelles colonnes : |
| 8 | {{{ |
| 9 | ALTER TABLE Users ADD city varchar(128); |
| 10 | ALTER TABLE Metadata ADD displayorder int; |
| 11 | }}} |
| 12 | |
| 13 | |
| 14 | |
| 15 | Le script suivant permet d'ajouter les nouvelles valeurs : |
| 16 | {{{ |
| 17 | INSERT INTO Groups VALUES (-1, 'GUEST', 'self-registered users', null, null); |
| 18 | INSERT INTO GroupsDes VALUES (-1, 'en', 'GUEST'); |
| 19 | INSERT INTO GroupsDes VALUES (-1, 'fr', 'GUEST'); |
| 20 | UPDATE IsoLanguages SET code = 'fre' WHERE code = 'fra'; |
| 21 | INSERT INTO Operations VALUES (2, 'editing', 'y'); |
| 22 | INSERT INTO OperationsDes VALUES (2, 'en', 'Editing'); |
| 23 | INSERT INTO OperationsDes VALUES (2, 'fr', 'Editing'); |
| 24 | -- Settings |
| 25 | INSERT INTO Settings VALUES (90, 1, 'selectionmanager', null); |
| 26 | INSERT INTO Settings VALUES (91, 90, 'maxrecords', 1000); |
| 27 | INSERT INTO Settings VALUES (170,1,'shib,''); |
| 28 | INSERT INTO Settings VALUES (171,170,'use,'false'); |
| 29 | INSERT INTO Settings VALUES (172,170,'path,'/geonetwork/srv/en/shib.user.login'); |
| 30 | INSERT INTO Settings VALUES (173,170,'attrib,''); |
| 31 | INSERT INTO Settings VALUES (174,173,'username,'REMOTE_USER'); |
| 32 | INSERT INTO Settings VALUES (175,173,'surname,'Shib-Person-surname'); |
| 33 | INSERT INTO Settings VALUES (176,173,'firstname,'Shib-InetOrgPerson-givenName'); |
| 34 | INSERT INTO Settings VALUES (177,173,'profile,'Shib-EP-Entitlement'); |
| 35 | INSERT INTO Settings VALUES (190,1,'userSelfRegistration,''); |
| 36 | INSERT INTO Settings VALUES (191,190,'enable,'false'); |
| 37 | INSERT INTO Settings VALUES (200,1,'clickablehyperlinks,''); |
| 38 | INSERT INTO Settings VALUES (201,200,'enable,'true'); |
| 39 | INSERT INTO Settings VALUES (210,1,'localrating,''); |
| 40 | INSERT INTO Settings VALUES (211,210,'enable,'false'); |
| 41 | INSERT INTO Settings VALUES (220,1,'xlinkResolver,''); |
| 42 | INSERT INTO Settings VALUES (221,220,'enable,'true'); |
| 43 | INSERT INTO Settings VALUES (600,1,'indexoptimizer,''); |
| 44 | INSERT INTO Settings VALUES (601,,'600,'enable,'true'); |
| 45 | INSERT INTO Settings VALUES (602,600,'at,''); |
| 46 | INSERT INTO Settings VALUES (603,602,'hour,'0'); |
| 47 | INSERT INTO Settings VALUES (604,602,'min,'0'); |
| 48 | INSERT INTO Settings VALUES (605,602,'sec,'0'); |
| 49 | INSERT INTO Settings VALUES (606,600,'interval,''); |
| 50 | INSERT INTO Settings VALUES (607,606,'day,'0'); |
| 51 | INSERT INTO Settings VALUES (608,606,'hour,'24,''); |
| 52 | INSERT INTO Settings VALUES (609,606,'min,'0'); |
| 53 | |
| 54 | }}} |
| 55 | |
| 56 | TODO : Vérifier les interactions avec les noeuds moissonnés (problème d'identifiant) |
| 57 | |
| 58 | |
| 59 | |
| 60 | === Installation de l'application === |
| 61 | |
| 62 | |