From 0ca57e883299e92a9f9c040cb0f6b2e525514164 Mon Sep 17 00:00:00 2001 From: Abhi Vaidyanatha Date: Mon, 12 Jul 2021 13:34:18 -0700 Subject: [PATCH] Update with ALTER TABLE statements (#4707) Co-authored-by: Abhi Vaidyanatha --- resources/examples/airflow/README.md | 5 +++++ resources/examples/airflow/up.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/examples/airflow/README.md b/resources/examples/airflow/README.md index 70cb50dfdb56..64cedde95468 100644 --- a/resources/examples/airflow/README.md +++ b/resources/examples/airflow/README.md @@ -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. \ No newline at end of file diff --git a/resources/examples/airflow/up.sh b/resources/examples/airflow/up.sh index a106b41add4a..9132db4706e6 100755 --- a/resources/examples/airflow/up.sh +++ b/resources/examples/airflow/up.sh @@ -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 \ No newline at end of file +docker-compose -f superset/docker-compose-superset.yaml up -d +echo "Access Superset at http://localhost:8088 to set up your dashboards." \ No newline at end of file