meir.shamay
07/20/2020, 2:13 PMdouwe_maan
07/20/2020, 2:22 PMmeltano config meltano list ?keat
07/20/2020, 2:27 PMmeltano_database_uri but it doesn’t seem to get updated when I invoke meltano command. I guess I’d have to add it manually doing configdouwe_maan
07/20/2020, 2:30 PMexport MELTANO_DATABASE_URI=foo is definitely supposed to work and it does for me locally! Can you share some more details of your setup where you're not seeing this working as expected?keat
07/20/2020, 2:35 PMmeltano elt because I ran a meltano invoke hoping that it will migrate.
So I did an export MELTANO_DATABASE_URI=foo then ran a meltano invoke tap and hoped that it will do a db migrate. But when I checked meltano config meltano list, it’s still listed as sqllite. Then again its not a big issue, I could just meltano config set it.
was also referring to this. https://meltano.slack.com/archives/CFG3C3C66/p1590695845231600?thread_ts=1590694764.222300&cid=CFG3C3C66douwe_maan
07/20/2020, 2:41 PMmeltano config meltano list itself will also perform the system database migration, so when I run export MELTANO_DATABASE_URI=<postgres://foo> (with an obviously invalid URL), meltano config meltano list errors out, indicating that the env var was picked up correctly:
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "foo" to address: nodename nor servname provided, or not knowndouwe_maan
07/20/2020, 2:42 PMmeltano config meltano list , where is the sqlite URL listed as coming from? The default?douwe_maan
07/20/2020, 2:43 PMmeir.shamay
07/20/2020, 2:44 PMmeir.shamay
07/20/2020, 2:44 PMdouwe_maan
07/20/2020, 2:45 PMmeltano config , so you should definitely see a few tables even if they'll be empty...douwe_maan
07/20/2020, 2:45 PMmeir.shamay
07/20/2020, 2:45 PMdouwe_maan
07/20/2020, 2:54 PMMELTANO_DATABASE_URI to an empty database, meltano config meltano list immediately runs migrations as seen in the logs:
$ export MELTANO_DATABASE_URI=<postgresql://meltano:meltano@localhost:5432/system-database>
$ meltano config meltano list
[2020-07-20 09:53:09,922] [73560|MainThread|alembic.runtime.migration] [INFO] Context impl PostgresqlImpl.
[2020-07-20 09:53:09,922] [73560|MainThread|alembic.runtime.migration] [INFO] Will assume transactional DDL.
[2020-07-20 09:53:09,930] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade -> b4c05e463b53, Create meltano.core base tables
[2020-07-20 09:53:09,959] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade b4c05e463b53 -> 6ef30ab7b8e5, Create meltano.api tables
[2020-07-20 09:53:09,982] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade 6ef30ab7b8e5 -> 53e97221d99f, Add run_id to Job
[2020-07-20 09:53:10,014] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade 53e97221d99f -> a3e2b0a4937d, add_login_audit_columns
[2020-07-20 09:53:10,016] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade a3e2b0a4937d -> 990c0665f3ce, ensure user.login_count default value
[2020-07-20 09:53:10,017] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade 990c0665f3ce -> ceb00d7ff3bd, Create the EmbedToken table
[2020-07-20 09:53:10,021] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade ceb00d7ff3bd -> 23ea52e6d784, add resource type to embed token
[2020-07-20 09:53:10,030] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade 23ea52e6d784 -> 87d9638f6ac6, Add Subscription
[2020-07-20 09:53:10,035] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade 87d9638f6ac6 -> 367228df6a43, Add 'trigger' to Job
[2020-07-20 09:53:10,036] [73560|MainThread|alembic.runtime.migration] [INFO] Running upgrade 367228df6a43 -> e4fbabc3fed6, add last activity at column
<snip>
database_uri [env: MELTANO_DATABASE_URI] (default: 'sqlite:///$MELTANO_PROJECT_ROOT/.meltano/meltano.db') current value: '<postgresql://meltano:meltano@localhost:5432/system-database>' (from the environment)douwe_maan
07/20/2020, 2:54 PMpublic schema?meir.shamay
07/20/2020, 2:57 PMdouwe_maan
07/20/2020, 2:58 PMmeir.shamay
07/20/2020, 2:59 PM