Feature request: baseline/ignore migrations #349
Replies: 2 comments 4 replies
-
Can you explain the workflow where you would need this? Generally, when restoring schema from a backup, you should insert rows into the I have never heard of IaSQL before, but I read your linked issue:
I guess this is similar to terraform import? What stops you from populating the
That seems to defeat the point of using a migration system. |
Beta Was this translation helpful? Give feedback.
-
IaSQL maintains a two-way connection between a PostgreSQL database and the cloud. When connecting a database to your cloud account, IaSQL treats the cloud as the source of truth and backfills the database with what is in the cloud account. It is common to disconnect a database from your cloud account and delete the database since it is so easy to create/connect a brand new database to your cloud account again. This mechanism is used by IaSQL internally when you
Nothing stops you from populating the |
Beta Was this translation helpful? Give feedback.
-
We perform data migrations in IaSQL which is built on PostgreSQL and we have the need to ignore certain migrations as databases sometimes are recreated and the migration table gets blown away. This can be done either with an explicit blacklist, but ideally by defining a baseline based on a timestamp that ignores migrations before the provided date similar to Flyway. The interface should be as simple as an additional, optional configuration value called
BASELINE_TIMESTAMP
.This is a high priority for us and we are considering building our own migration system as we have not found one that fits all of our needs. If guidance can be provided someone from our team can contribute as soon as next week :)
Beta Was this translation helpful? Give feedback.
All reactions