Comments (5)
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.
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.
@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.
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.
Yes. We will improve the documentation regarding this. Glad we could help.
from atlas.
Related Issues (20)
- Feature Request: Support for Clickhouse Dictionary
- Bypass interactive approval for column `RENAME` detection HOT 5
- Hard to keep HCL files concise when they contain same table names
- What is the HCL standard library? Is this documented anywhere? HOT 1
- Linter for versioned workflow doesn't follow transaction model
- Latest release makes diff command fail
- Feature Request: Add support of SSH tunnel
- Missing Schema Prefix in DDL `RENAME` Statement HOT 4
- [REOPEN of #3006] Missing Schema Prefix in DDL `RENAME`
- Atlas hash incorrect order for golang migrate
- Fix the URL parsing for special characters. HOT 2
- Running atlas commands against cockroachdb returns error with postgres wire protocol HOT 2
- Add Postgres 15+ support for security = INVOKER
- Feature Request: Support for `SET configuration_parameter { TO value | = value | FROM CURRENT }` in Function Definition Syntax HOT 2
- Declarative workflow breaks on YugabyteDB HOT 6
- Atlas HCL Syntax: String Not Recognized by Linter HOT 5
- [Multi-file schema]: Allow glob pattern for `env.src` HOT 2
- [Multi-file schema / vsCode extension]: Load related schema files into extension context HOT 5
- [vsCode extension]: Do not require schema files to end in `.pg.hcl` HOT 1
- Go 1.23 support with ent schema loader HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atlas.