Changing the Editor for the --edit Flag
Question
Is there a way to change which editor opens when I use the --edit flag while creating a migration?
Is there a way to change which editor opens when I use the --edit flag while creating a migration?
When using Atlas on my macOS, I can run atlas migrate apply without any issues, and it applies the migrations successfully.
But when running in CI on linux, I get the following error: Error: checksum mismatch
This issue is likely due to differences in line endings between operating systems. macOS uses LF (Line Feed) for line endings,
while Windows uses CRLF (Carriage Return + Line Feed). When you run Atlas commands in a Docker container,
it may be using a different line ending format than what your migrations were created with.
How to detect schema drift in CI and ensure the migration directory is up to date with the desired schema state - ORM, HCL, SQL, or any other schema definition?
With Atlas, we advocate for treating migration directories as deployment artifacts resulting from a structured build process. The preferred approach is to push migration directories to the Atlas Schema Registry. In addition to its role as a migration directory storage, the Schema Registry provides a tight integration with the Atlas CLI and the Atlas Cloud UI, allowing you to deploy migrations, visualize schemas over time, review deployment logs and errors, and more.
However, some users prefer to store their migration directories in S3, typically due to internal policies or requirements.
A .env file is a simple text file used to store environment variables for applications. It helps developers manage
configuration settings, such as database credentials, API keys, and other sensitive information, without hardcoding them
into the source code. By using a .env file, developers can keep their codebase clean, secure, and easily configurable
across different environments.
For developers who want to use .env files with Atlas, there are two ways users can do so through the standard Atlas
HCL configuration file:
Why does Atlas not detect PostgreSQL event_trigger objects when using --dev-url with search_path=public?
Why does atlas schema apply / atlas schema plan fail with an error like this when working with PostgreSQL extensions?
Error: create extension "postgis_topology": pq: extension "postgis_topology" has no installation script nor update path for version "3.4.3"
PostGIS is a spatial database extension for PostgreSQL. It adds support for geometric objects, enabling the processing
of spatial data like points, lines, and polygons. After installing PostGIS, the GEOMETRY data type can be used to define
tables that capture geo-spatial data, for example:
How can I install Atlas, and why is go install no longer supported?
Developers who use Atlas to run migrations using a golang-migrate directory format, may run into an errors like:
-- migrating version 20250324061649.down.sql
-> DROP TABLE `users`;
Error 1051 (42S02): Unknown table 'public.users'