- download all files to a directory
- install altasgo
./setup.sh
- login to DB verifying setup
docker exec -it atlas-demo bash
psql 'postgres://root:asdf@localhost/example'
select * from users;
expecting to see the following:
id | name
----+------
1 | foo
2 | bar
3 | baz
(3 rows)
- apply migration, which rename
name
to user_name
atlas schema apply -u "postgres://root:asdf@localhost:5432/example?sslmode=disable" --to file://schema.v2.hcl
example=# select * from users;
id | user_name
----+-----------
1 |
2 |
3 |
(3 rows)