Skip to content

Commit

Permalink
Update with ALTER TABLE statements (#4707)
Browse files Browse the repository at this point in the history
Co-authored-by: Abhi Vaidyanatha <abhivaidyanatha@Abhis-MacBook-Pro.local>
  • Loading branch information
avaidyanatha and Abhi Vaidyanatha authored Jul 12, 2021
1 parent 702f4b0 commit b07ab4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions resources/examples/airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@ Head over to http://localhost:8088 to get to the Superset UI. Enter `admin` as y

![](./assets/superset_database_setup.png)

```
docker exec airbyte-destination psql -U postgres -c "ALTER TABLE stargazers ADD COLUMN starred_ts timestamp;"
docker exec airbyte-destination psql -U postgres -c "UPDATE stargazers SET starred_ts = starred_at::timestamptz;"
```

## Cleaning Up
Run `down.sh` to clean up the containers. Or run `docker-compose down -v` here and in the root directory, your call.
3 changes: 2 additions & 1 deletion resources/examples/airflow/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ docker exec -ti airflow_webserver airflow connections add 'airbyte_example' --co
echo "Access Airflow at http://localhost:8085 to kick off your Airbyte sync DAG."
echo "Attempting to remove previous Superset installation."
docker-compose -f superset/docker-compose-superset.yaml down -v
docker-compose -f superset/docker-compose-superset.yaml up -d
docker-compose -f superset/docker-compose-superset.yaml up -d
echo "Access Superset at http://localhost:8088 to set up your dashboards."

0 comments on commit b07ab4f

Please sign in to comment.