Skip to content

Commit 2adc857

Browse files
committed
docs: update atlas schema commands for postgres usage
1 parent 48beb70 commit 2adc857

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ uv run pytest
1313

1414
atlas schema inspect -u "sqlite://file?cache=shared&mode=memory" --format "{{ sql . }}"
1515
atlas schema inspect -u "sqlite://issues.db" --format "{{ sql . }}" > migrate.sql
16+
atlas schema inspect -u "postgres://app_user:change_this_password@localhost:5432/app_database?sslmode=disable" --schema "issue_analysis" --format "{{ sql . }}"
1617

1718
atlas schema apply --url "sqlite://issues.db" --to "file://migrate.sql" --dev-url "sqlite://file?mode=memory" --dry-run
1819
atlas schema apply --url "sqlite://issues.db" --to "file://migrate.sql" --dev-url "sqlite://file?mode=memory"
1920

20-
atlas schema apply --url "postgres://app_user:change_this_password@localhost:5432/app_database?sslmode=disable" --to "file://migrate.sql" --dev-url "docker://postgres/17" --schema "issue_analysis" --dry-run
21+
atlas schema apply --url "postgres://app_user:change_this_password@localhost:5432/app_database?sslmode=disable" --to "file://migrate.sql" --dev-url "docker://postgres/17" --dry-run
2122
```
2223

2324
```mermaid

0 commit comments

Comments
 (0)