Using PostgreSQL Extensions with Atlas
Question
How do I manage PostgreSQL extensions with Atlas?
How do I manage PostgreSQL extensions with Atlas?
My revisions table lists the following versions:
mysql> SELECT * FROM "atlas_schema_revisions";
+-------------------------+---------+-----+
| version | applied | ... |
+-------------------------+---------+-----+
| .atlas_cloud_identifier | 0 | |
| 20251007053111 | 1 | |
| 20251007051222 | 1 | |
| 20250618084333 | 1 | |
+-------------------------+---------+-----+
However, when I inspect the target database, the schema changes from 20250618084333 were never applied. How can I delete the latest row(s) so the revision history reflects the actual state?
How to test PostgreSQL Row-Level Security (RLS) policies using Atlas.
What encoding is used by Atlas for schema files? How do you avoid encoding issues with PowerShell on Windows?
Atlas uses UTF-8 to encode schema files and migration files generated by Atlas. UTF-8 is the default encoding on nearly all system terminals, but on Windows, PowerShell uses UTF-16 by default. This can cause an encoding issue when Atlas loads the schema files generated by the inspect command.
How can I check the size of my database schemas and count the number of objects in each schema?
How do I populate my databases with a static dataset using Atlas?
How can I keep a single canonical schema or model and apply it to multiple database drivers (for example, an application Postgres database and a data-lake store) so the two remain in sync?
How do I instruct Atlas to not generate RENAME commands for table constraints in schema migrations when running commands
such as migrate diff, schema apply, schema plan, etc.?
How can I run init scripts on SQL Server when using GitHub Actions services instead of the Atlas docker blocks?
Terraform can write resource arguments into state and saved plans. HashiCorp's
Terraform state documentation warns that
state files can expose stored secrets. The sensitive flag redacts CLI and UI output, but Terraform can
still record the value in state.
With the atlas_schema resource, Terraform can pass connection metadata while Atlas resolves the
credential when it evaluates atlas.hcl.