Hi!
We are trying to use sql server as a n8n database for poc. I added necessary configurations for sql server. When i try to create migration files i got “Cannot use import statement outside a module” error.
Can you please help me? How can i create migration files?
Ps: I dont have much node.js and typeorm knowledge, just wanted to know if we can run n8n with sql server.
Migration create command: typeorm migration:generate …/src/databases/migrations/sqlserver -d Db.ts
Error: "Cannot use import statement outside a module
Information on your n8n setup
- n8n version: Latest master branch (07.12.2022)
- Running n8n with the execution process [own(default)]:**
- Running n8n via [npm]:**
Update:
I also tried " pnpm typeorm migration:generate -d …/src/databases/migrations/sqlserver -n InitMigration -c ./Db.ts" but it returned TypeORMError: No connection options were found in any orm configuration files. I assume its expect datasourse but “pnpm typeorm migration:generate” command don’t have any input as “Datasource”.