Giter Site home page Giter Site logo

Comments (5)

masseelch avatar masseelch commented on August 26, 2024 2

atlas migrate push is computing some intermediate states for the migration files. I have a feeling that there might be something off inside there. I will investigate and come back to you.

from atlas.

masseelch avatar masseelch commented on August 26, 2024 1

Okay, we managed to figure this out:

Extensions in PostgreSQL are database objects, they cannot be managed in schema level. This means your migrations should work in database scope (without search_path set).

In your example, if you remove the schema = "public" form the docker block in the atlas.hcl it should work in CI.

Please note, that by changing the scope (schema bound to database bound) your migrations will have schema qualifiers.

from atlas.

giautm avatar giautm commented on August 26, 2024

@KostyaZgara I saw my co-worker's response here. #2578 (comment)

Please use a bare docker image for PG (without Postgis installed on it). postgis/postgis:15-3.4 replace this image with regular docker image, and remove the baseline for drop extension.

from atlas.

KostyaZgara avatar KostyaZgara commented on August 26, 2024

Yeap, it works! Solution with removing search_path and schema = "public" from docker block in atlas.hcl works and now I can be able to run extensions everywhere locally, in CI, and in production. Moreover Atlas can compute now diff and install extension automatically that's great news as well, cuz now I can remove manipulations with baseline scrips everywhere. I'm closing the issue now, but I think it would be great to add such mention in documentation, cuz it's not obvious behavior in my opinion. Thanks!

from atlas.

masseelch avatar masseelch commented on August 26, 2024

Yes. We will improve the documentation regarding this. Glad we could help.

from atlas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.