[DRAFT] Migration script validation.


1) Determine actual module’s version from UI/Settings/Software Version or GET http://localhost:9130/_/proxy/modules?filter=mod-data-export (last module in the list). 

 

2) Purge this module: 

 

POST http://localhost:9130/_/proxy/tenants/diku/install?purge=true 

POST /_/proxy/tenants/diku/install?purge=true HTTP/1.1 

Content-Type: application/json 

User-Agent: PostmanRuntime/7.29.0 

Accept: */* 

Cache-Control: no-cache 

Postman-Token: d07cee8b-d132-41e0-ab57-2196ba148a61 

Host: localhost:9130 

Accept-Encoding: gzip, deflate, br 

Connection: keep-alive 

Content-Length: 66 

 

[{"id": "mod-data-export-4.6.0-SNAPSHOT.321","action": "disable"}] 

 

HTTP/1.1 200 OK 

Content-Type: application/json 

content-encoding: gzip 

content-length: 142 

 

[ { 

"id" : "folio_inventory-9.2.1000001619", 

"action" : "disable" 

}, { 

"id" : "folio_data-export-5.2.1000313", 

"action" : "disable" 

}, { 

"id" : "mod-data-export-4.6.0-SNAPSHOT.321", 

"action" : "disable" 

} ] 

 

3) Enable needed module’s version: 

 

POST http://localhost:9130/_/proxy/tenants/diku/install?deploy=true&tenantParameters=loadReference=true&2loadSample=true200 

49.56 s 

POST /_/proxy/tenants/diku/install?deploy=true&tenantParameters=loadReference=true&2loadSample=true HTTP/1.1 

Content-Type: application/json 

User-Agent: PostmanRuntime/7.29.0 

Accept: */* 

Cache-Control: no-cache 

Postman-Token: 314be792-e0d4-4ee8-8d8c-4f7558f88669 

Host: localhost:9130 

Accept-Encoding: gzip, deflate, br 

Connection: keep-alive 

Content-Length: 52 

 

[{"id": "mod-data-export-4.4.2","action": "enable"}] 

 

HTTP/1.1 200 OK 

Content-Type: application/json 

content-encoding: gzip 

content-length: 84 

 

[ { 

"id" : "mod-data-export-4.4.2", 

"action" : "enable" 

} ] 

 

Inspect needed tables in the DB!!! 

 

4) Migrate to needed module’s version: 

 

POST http://localhost:9130/_/proxy/tenants/diku/install?deploy=true200 

44.67 s 

POST /_/proxy/tenants/diku/install?deploy=true HTTP/1.1 

Content-Type: application/json 

User-Agent: PostmanRuntime/7.29.0 

Accept: */* 

Cache-Control: no-cache 

Postman-Token: 3d5623dd-82ea-4cce-bf72-1666521f4578 

Host: localhost:9130 

Accept-Encoding: gzip, deflate, br 

Connection: keep-alive 

Content-Length: 52 

 

[{"id": "mod-data-export-4.5.0","action": "enable"}] 

 

HTTP/1.1 200 OK 

Content-Type: application/json 

content-encoding: gzip 

content-length: 95 

 

[ { 

"id" : "mod-data-export-4.5.0", 

"from" : "mod-data-export-4.4.2", 

"action" : "enable" 

} ] 

 

Inspect needed tables in the DB and compare results with point 3)!!!