Replies: 1 comment
-
Another way we have tried is to create a
This worked for the initial bootstrap. Our dev db on neon is correctly set up. We then want to add a new table. This is where we get lost. Using the migrate diff command:
The In the docs the Is this a correct approach? Should we just add sql files with our changes to the migration folder and run the |
Beta Was this translation helpful? Give feedback.
-
I'm working with a postgres database that has many schemas. We especially have a single schema that has all of our extensions and some shared functions, and the rest of the schemas references this schema when trying to use any of the extensions and/or functions.
Is there a best practice in Atlas on how to handle the intial migration? We want atlas to manage the whole database instance (realm connection). We run into a couple of extensions not being found when referenced in different schemas when trying
atlas migrate diff
. Instead of creating a single schema file with all the schemas of the database, should I do one schema at a time? But then I get the same issue that some schemas not being able to reference other schemas.NOTE: We use the
atlas schema inspect -s <schema> ...
to generate the inital schema per schema in the database (we do not usesearch_path
in any of our connection strings. The generated schema is then used as the--to
in the migration diffpostgres v16
atlas v0.22.1-1f6fa87-canary
Beta Was this translation helpful? Give feedback.
All reactions