Case study
20+ years of scientific data, with no loss
Scientific and geographic data moved to an up-to-date database with no loss. It is not a Drupal site, but the method is the same as for a migration.
- 20+
- years of scientific data migrated
- 389
- tables migrated and checked one by one
- 4 months
- from August to
Context
Where it started
INRAE, a French research institute, uses a scientific application for its work on vines and wine. It holds 20+ years of research data, including geographic data. Researchers use it every day, with Excel imports and exports.
The database ran on PostgreSQL 9.1 and the hosting provider was moving to PHP 8. I led the whole migration on my own, from August to , with the person in charge of the application at INRAE as my contact.
It is not a Drupal site. I include it because an old application and an old Drupal site raise the same questions. What has to stay exactly the same, and how do you prove nothing is lost?
The work
What I did
The database
PostgreSQL 9.1 to 16
- Migration plan A written step-by-step guide, from analyzing the source database to testing the application.
- Geographic data The move from PostGIS 1.5 to 3.5, with a separate check of the spatial data.
- Verification 389 tables in the source and 389 in the target, compared table by table before go-live.
- Backups A database backup and restore script for each environment.
The code
PHP 8 compatible
- Code update The hosting provider moved to PHP 8. I updated the application’s code so it stayed compatible.
- Excel imports and exports PHPExcel, which is abandoned, replaced with PhpSpreadsheet. Researchers’ files keep the same format.
- Fixes Date formats, empty values and import columns, fixed one by one.
Challenges
The challenges and how I handled them
- A big version gap Twelve years separate PostgreSQL 9.1 and 16. PostGIS also changed format between versions 1.5 and 3.5. The move was prepared and rehearsed on copies before production.
- Geographic data It does not move with a simple copy of the database. It was migrated, then checked separately.
- Researchers’ Excel files Their format had to stay identical after the library change. It was a key checkpoint.
- Alone on old code With no team to answer questions, understanding before changing was the only way to avoid breaking a business rule without noticing.
The result
What changed
- The application runs on PostgreSQL 16 and PHP 8, in production since late 2025.
- All 389 tables and the geographic data were migrated with no loss.
- Researchers still use the platform, with the same Excel imports and exports.

Let’s talk about your site
A first video call to look at your site together. Pick a time in my calendar and the link arrives by email.
Prefer email? contact@remichauveau.fr