Problem: we have one application that has a part that is used by a very small subset for all users, and this part of the application is also disconnected from a separate database. In an ideal world, the schemas of two databases will be synchronized, but this is not so. Some migrations were performed in a smaller database, most of them do not; and, besides, there is nothing like a revision number to be able to easily identify which ones have and which don't. We would like to solve this problem for future projects. During the discussion, we came up with the following possible plan of action, and I wonder if anyone knows about any project that has already solved this problem:
What we need to do is create an empty database from the schema of a large fully migrated database, and then move all the data from the smaller untranslatable database to this empty one. If this simplifies the situation, we can probably assume precisely this problem that no migrations have ever deleted anything, only added.
Otherwise, if there are other known solutions, I would also like to hear them.
source share