yao_zhang
10/31/2023, 10:11 PMv1.105.0 that we're preparing to migrate to v3.0.0 for. v1 is currently using a postgres database as its state backend. I've gone ahead and just created a new project running v3, rather than modifying the existing one. My question is would we be able to simply point the new project that's running v3 to the same backend uri while maintaining the existing bookmarks? i've been running v3 locally and inspecting the tables using the local file system in .meltano/meltano.db vs the tables in our postgres instance and it looks like v3 has some new job related tables state and runs vs v1 which only has the job table. Would someone be able to give me more info on how state was maintained in v1 vs any differences in v3?edgar_ramirez_mondragon
11/01/2023, 5:38 PMmeltano config meltano list with v3, and the database uri still pointing to the original database, to make sure schema migrations run before you run any pipeline.yao_zhang
11/01/2023, 9:03 PMMELTANO_DATABASE_URI and MELTANO_STATE_BACKEND_URI env vars, what is the difference between the two? if we want dev to point to local file system, but prod to postgres endpoint how would the meltano.yml look like?yao_zhang
11/01/2023, 9:14 PMmeltano config meltano list with v3 after pointing to the existing v1 backend effectively the same as running meltano upgrade database or would i still have to run that command afterwards https://docs.meltano.com/reference/command-line-interface/#how-to-use-24yao_zhang
11/03/2023, 8:28 PMedgar_ramirez_mondragon
11/06/2023, 6:42 PMwhat is the difference between the two?The database URI is used regardless of the state backend you configure. By defaults points to a sqlite db in
.meltano/meltano.db. This is not critical for the operation of Meltano if you're using a different state backend.
if we want dev to point to local file system, but prod to postgres endpoint how would theI would instead use env vars: • Local:look like?meltano.yml
MELTANO_STATE_BACKEND_URI='file:///${MELTANO_SYS_DIR_ROOT}/state'
• Prod: MELTANO_DATABASE_URI='postgresql+psycopg://<username>:<password>@<host>:<port>/<database>'
https://docs.meltano.com/concepts/state_backends/#local-file-system
https://docs.meltano.com/reference/settings?meltano-tabs=env
is runningThe former should be enough to trigger db migrationswith v3 after pointing to the existing v1 backend effectively the same as runningmeltano config meltano listor would i still have to run that command afterwardsmeltano upgrade database
yao_zhang
11/07/2023, 8:08 PMedgar_ramirez_mondragon
11/08/2023, 12:15 AMAre there any rollbacks that we'd be able to do if the schema migration doesn't go as planned?In theory, yes. Meltano uses alembic, so you could downgrade the db schema using the alembic CLI installed in the same environment as Meltano to revert to revision
13e8639c6d2b .
after the update would the old v1 meltano pipelines still be able to run if the db is using v3 schema? or do we need a fast follow with upgrading meltano to v3?No. Pipelines running on Meltano v1 will not work on v3 because things are renamed and moved under the hood in the db schema.
yao_zhang
11/08/2023, 12:24 AM