Typeorm not working in 1.112.6

Describe the problem/error/question

I just upgraded the Docker container to 1.112.6 and attempted to update the database on Postgres.

C:\Projects\docker>docker exec -it f19c874739ca npx n8n --version
1.112.6

C:\Projects\docker>docker exec -it f19c874739ca npx typeorm migration:run
Need to install the following packages:
[email protected]
Ok to proceed? (y) y

typeorm migration:run

Runs all pending migrations.

Options:
-h, --help Show help [boolean]
-d, --dataSource Path to the file where your DataSource instance is defined.
[required]
-t, --transaction Indicates if transaction should be used or not for
migration run. Enabled by default. [default: “default”]
-f, --fake Fakes running the migrations if table schema has already
been changed manually or externally (e.g. through another
project) [boolean] [default: false]
-v, --version Show version number [boolean]

Missing required argument: dataSource
npm notice
npm notice New major version of npm available! 10.9.3 → 11.6.1
npm notice Changelog: Release v11.6.1 · npm/cli · GitHub
npm notice To update run: npm install -g [email protected]
npm notice

All the required env variables are set.
What is the dataSource that needs to be added to this command?

Thanks,

Thm.

hello @thm22

Why are you trying to update anything inside the Docker container?

I am just following the upgrade procedure as recommended by n8n. Back up the workflows and credentials, update the Docker image, restart, and then run the migration tool to update the PostgreSQL database. That last step is pending since the command provided is not working, see above. The version of TypeORM requires a file or parameter for dataSource. I don’t know exactly what that means.

I guess that is no longer necessary with that version. Supposedly n8n will start the migration tool by itself after a new version has been launched.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.