When we hear the word "migration", we usually think right away of people moving across countries. Some of us recall well-known Poles who ended up abroad during the partitions or the war and kept working from there. Others immediately hear "eeeeemiiiiigraaaated" from the song "Jolka, Jolka pamiętasz" by Budka Suflera. Today, though, we are going to play a completely different tune, one that belongs to IT, because migration very much exists there too.
The word is not unusual in our field. On the contrary, it comes up quite often, and I do not mean only developers moving to warm countries to do their home office there. On top of that, "migration" can appear in a different context every time. Those are the contexts we will go through today, and along the way we will show how much depth there is in some topics, depth that non-technical people do not always expect.
Data migration
This is the context that comes up most often in conversations between a software house and a client. Besides new, fresh projects, there are also those meant to replace a system the client has been using so far. That means the users already have some data and will certainly not be happy to lose it, because they will need it for their work in the new software. So this data has to be moved, that is, migrated.
This is not a simple matter. Every system (or almost every system) stores data in a database whose schema certainly differs from the schema of the new IT system. This is not only about the layout of tables (if we are talking about relational databases), but also about how reference data is stored, how types are marked, and other specific data that is encoded in a particular way. More than once we have also seen cases where values that should be unique in the new software were stored quite loosely in the old systems. Of course, there are cases where moving such information goes smoothly, but those are exceptions, even "unicorns".
Much more often, you need to work out a mapping between the two databases, decide which data really has to be moved and which can be skipped (not every value needs to be migrated), and write a script that does it in a repeatable way (or use existing solutions). You also often need to consult the builders of the previous system to make sure how to interpret some of the stored information, especially if it is inconsistent or stored in a "one of a kind" way (for example, types saved as one-letter abbreviations known only to people with access to the old code). What is more, contrary to popular belief, migration usually happens more than once. The process often has to be run several times or with a different scope:
- full or partial migration (for example, only some of the data),
- migration from the beginning or only of new data (a tip: think about this right away, because being ready to limit the scope of the migration greatly affects the structure of the migration script),
- a test migration, checking "how it will look" after the real one,
- the real migration, after which the new system is fully deployed,
- a supplementary migration, copying the data that has appeared since the real migration.
The migration process is not only about moving data. You also have to remember the files (for example, product photos in an online store or user avatars), which are often stored in a very individual way, with all kinds of names, sometimes resulting from how they are looked up in the system (for example, photos of the item with ID = 120 will always be in the folder upload/item/120). Of course, it is best to prepare the file system in the new system so that copying the disk contents is painless, but that is usually not possible. First, the old structure is not always good and worth keeping at all costs. Second, there are usually so many files that the transfer alone takes a while for purely "physical" reasons. Third, usually nobody thinks about it at the start. And here we will stop for a moment.
To a certain degree it is understandable that migration is skipped at the start, because at the beginning everyone is absorbed in the new system being built, in making it look better and do more than the old software. The problem is that this approach can cause many misunderstandings. The client usually thinks data migration is a quick process that does not need much discussion. The client also asks for an estimate of this element without presenting the current structures and the way files are stored, so developers usually estimate such work blindly, which in the vast majority of cases (in fact almost always) means underestimating both the budget and the time. And why is there no access? Sometimes for legal reasons: the client has not yet decided to work with us, because they need to see the estimate first, and they are less willing to share sensitive parts of their infrastructure or information at this stage. Of course, all of that can be settled with the proper paperwork, and developers will not sell it on a dark web exchange. But this stage is specific enough that the software house also wants a quick estimate of the effort, so that the estimating process itself is efficient. So we recommend dealing with this topic at the start, and not merely noting that it exists and will come up someday.
Moving data does not always mean migrating between databases. Sometimes the client's information sits in:
- other IT systems (not under the client's control),
- spreadsheets (or CSV files),
- text files,
- emails.
Of course, the last item is the extreme, although we once came close to it. The first two data sources (especially the second) are very common. A client does not always keep information in a system. Sometimes it is collected in shared spreadsheets, and it is the inefficiency of that kind of storage that makes a new IT system necessary. Quite often the external system in use loses support or stops being sufficient, which becomes the impulse to design your own software. Either way, the existing data has to be extracted, and everything depends on how the current software vendor approaches it. In our experience, they usually have procedures and exporters prepared for this. But there is always a bit of adventure.
Migration within an application
The days when changing the database schema used by an application required preparing SQL queries by hand and having other developers replay them are long gone. For many years now frameworks have had migration features, which use internal, usually convenient methods to, for example, add a column or insert fixed data. More importantly, such subsystems also control how changes are introduced in different environments and for different developers, by applying only the changes that have not yet been run on a given machine, and by supporting rollbacks. As a result, you can update your database with practically one command in the terminal and not worry about hunting for entries you do not have yet. The framework's migration module does it for us.
It is worth mentioning here that migration is usually one thing and so-called seeding another. The former concerns the database schema, that is, the framework within which the database works. Seeds, on the other hand, usually handle fixed data that the database of a given application must have in every environment to work normally and offer all its features. There is also something called fixtures, which, as usual, we Polonize into "fiksturami". They are a package of data that must be present in the database, for example before automated tests run.
Migration between computers
When anyone gets a new computer, they usually feel excited. Everything will be fast and smooth again, and better hardware and an updated system are at their disposal. But soon after, the user realizes that to carry on working, they usually have to move all their data and, worse, their installed programs. And that can be painful, or at least time-consuming. Welcome to the hell of migrating from computer to computer.
Of course, I am joking a little and exaggerating, but it is true that moving to new hardware usually costs some time and nerves spent adjusting the new gadget to your needs. A lot depends on the environment here. Sometimes it ends with copying files by hand and installing the software from scratch, and sometimes the manufacturers themselves make the process easier. In this respect (at least in this one...) Apple computers are excellent, as they have a built-in option for migrating between machines. But there are other ways to make this easier too, such as using the cloud or cloning the disk. It is also worth realizing that it does not always make sense to move everything one to one. Whoever has never had a mess on their old computer and told themselves "I will clean up while moving to the new one" may cast the first stone. Ouch, but not in the eye.
For developers, moving to new hardware should be exceptionally smooth, because they should start working almost immediately. After all, clients will not wait until the coder finishes copying everything. Still, with the tools available today it is not that much of a problem, especially if we have well-prepared procedures for setting up the technology stack or simply use containerization.
User migration
A very interesting and deep topic, one that has less to do with building software than with human psychology. Suppose users have worked with one piece of software for a long time and now have to or may move to another. Or the maker of an application has prepared a new version of the interface and needs to work out a procedure for moving people over. In both cases we are talking about user migration.
Why did we mention psychology here? From the user's perspective, this process is not easy. They have to learn a new interface, different rules that govern the software, and a different style of work. All of this means that switching to a new way of working takes time, and that automatically discourages some people from changing, unless they see clear benefits. This is especially noticeable in companies with weaker ties to IT, which have worked by certain procedures until now and now have to move to new software that does not meet all their expectations. Specifically, one of them: it is not the old software, not everything is in the same place, and you cannot click "from memory". This causes big problems and plain reluctance, which not only the makers have to face, but also the management of such a company, who also have an interest in encouraging people to use the new tool.
All of this means that such a move does not happen only in the technical sphere. It also has to happen in the mental one. Tutorials and a well-prepared help system that compares the two systems definitely help, but usually that is not enough. To overcome fear or reluctance toward a new system, you need:
- clearly listed benefits, but not in a business way like "you will work efficiently". Arguments like "this could not be done before, and now it is possible" or "now you will do this more easily" work very well here,
- training: a human guide who helps people through the difficult period of migration is more effective than tutorials, although this depends a lot on the situation and the nature of the cooperation,
- video tutorials on specific cases: it is worth finding out the users' most common concerns or problems and showing how to handle them in the new system, and also... expressing sympathy,
- additional incentives, not always material: with new versions of systems available in the cloud for many users, you can appeal to the user's need to feel needed and important and assure them they will be in a close circle of testers of the new solution, so they stand out from the others.
Of course, every such process is different and requires different solutions. Sometimes migration involves no difficulties at all, and sometimes it is even blocked and, despite long efforts, does not happen, for various reasons.
Technology migration
Let us get back to technical matters. If "migration" in general means moving an object between two locations or areas, then developers switching to a new technology can also be called that. Changing the technology stack is a serious matter, especially inside an organization where developers, used to one set of solutions, have to get to know and learn a new framework or language. This takes time and effort, which for a while slows down software development, although in the long run it is supposed to pay off. That is why such moves should not be made without a good plan and without clear reasons, just as with rewriting a particular piece of software.
We also talk about this kind of migration when a developer changes jobs and joins a team where they have to write in a framework they do not know. That is nothing unusual. If developers moved only between teams that keep using one technology, the range of such "moves" would be very limited, and growth prospects would be smaller too. Still, every new element of the technology stack (even one as big as a library, a framework or even a programming language) is a big change and calls for adaptation.
Summary
As you can see, migration in IT goes by many names. The most important one is the procedure of moving information from one IT system to another, but it is not the only context in which the word is used (usually not without some extra swearing). So if programmer friends tell you they are dealing with migration, they usually do not mean sociological factors, and it is not an invitation to talk about politics or moving house.
Best regards, and thank you. Jakub Rojek.


