mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
027dfb2f0a
* ⚡ Enable `esModuleInterop` for /core * ⚡ Adjust imports in /core * ⚡ Enable `esModuleInterop` for /cli * ⚡ Adjust imports in /cli * ⚡ Enable `esModuleInterop` for /nodes-base * ⚡ Adjust imports in /nodes-base * ⚡ Make imports consistent * ⬆️ Upgrade TypeScript to 4.6 (#3109) * ⬆️ Upgrade TypeScript to 4.6 * 📦 Update package-lock.json * 🔧 Avoid erroring on untyped errors * 📘 Fix type error Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
76 lines
2 KiB
TypeScript
76 lines
2 KiB
TypeScript
import path from 'path';
|
|
import { UserSettings } from 'n8n-core';
|
|
import { entities } from '../src/databases/entities';
|
|
|
|
module.exports = [
|
|
{
|
|
name: 'sqlite',
|
|
type: 'sqlite',
|
|
logging: true,
|
|
entities: Object.values(entities),
|
|
database: path.join(UserSettings.getUserN8nFolderPath(), 'database.sqlite'),
|
|
migrations: ['./src/databases/sqlite/migrations/index.ts'],
|
|
subscribers: ['./src/databases/sqlite/subscribers/*.ts'],
|
|
cli: {
|
|
entitiesDir: './src/databases/entities',
|
|
migrationsDir: './src/databases/sqlite/migrations',
|
|
subscribersDir: './src/databases/sqlite/subscribers',
|
|
},
|
|
},
|
|
{
|
|
name: 'postgres',
|
|
type: 'postgres',
|
|
logging: false,
|
|
host: 'localhost',
|
|
username: 'postgres',
|
|
password: '',
|
|
port: 5432,
|
|
database: 'n8n',
|
|
schema: 'public',
|
|
entities: Object.values(entities),
|
|
migrations: ['./src/databases/postgresdb/migrations/index.ts'],
|
|
subscribers: ['src/subscriber/**/*.ts'],
|
|
cli: {
|
|
entitiesDir: './src/databases/entities',
|
|
migrationsDir: './src/databases/postgresdb/migrations',
|
|
subscribersDir: './src/databases/postgresdb/subscribers',
|
|
},
|
|
},
|
|
{
|
|
name: 'mysql',
|
|
type: 'mysql',
|
|
database: 'n8n',
|
|
username: 'root',
|
|
password: 'password',
|
|
host: 'localhost',
|
|
port: '3306',
|
|
logging: false,
|
|
entities: Object.values(entities),
|
|
migrations: ['./src/databases/mysqldb/migrations/index.ts'],
|
|
subscribers: ['src/subscriber/**/*.ts'],
|
|
cli: {
|
|
entitiesDir: './src/databases/entities',
|
|
migrationsDir: './src/databases/mysqldb/migrations',
|
|
subscribersDir: './src/databases/mysqldb/Subscribers',
|
|
},
|
|
},
|
|
{
|
|
name: 'mariadb',
|
|
type: 'mariadb',
|
|
database: 'n8n',
|
|
username: 'root',
|
|
password: 'password',
|
|
host: 'localhost',
|
|
port: '3306',
|
|
logging: false,
|
|
entities: Object.values(entities),
|
|
migrations: ['./src/databases/mysqldb/migrations/*.ts'],
|
|
subscribers: ['src/subscriber/**/*.ts'],
|
|
cli: {
|
|
entitiesDir: './src/databases/entities',
|
|
migrationsDir: './src/databases/mysqldb/migrations',
|
|
subscribersDir: './src/databases/mysqldb/Subscribers',
|
|
},
|
|
},
|
|
];
|