mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 05:29:42 -08:00
3137de2585
* ✨ change FE to handle new object type * 🚸 improve UX of handling invalid credentials * 🚧 WIP * 🎨 fix typescript issues * 🐘 add migrations for all supported dbs * ✏️ add description to migrations * ⚡ add credential update on import * ⚡ resolve after merge issues * 👕 fix lint issues * ⚡ check credentials on workflow create/update * update interface * 👕 fix ts issues * ⚡ adaption to new credentials UI * 🐛 intialize cache on BE for credentials check * 🐛 fix undefined oldCredentials * 🐛 fix deleting credential * 🐛 fix check for undefined keys * 🐛 fix disabling edit in execution * 🎨 just show credential name on execution view * ✏️ remove TODO * ⚡ implement review suggestions * ⚡ add cache to getCredentialsByType * ⏪ use getter instead of cache * ✏️ fix variable name typo * 🐘 include waiting nodes to migrations * 🐛 fix reverting migrations command * ⚡ update typeorm command * ✨ create db:revert command * 👕 fix lint error Co-authored-by: Mutasem <mutdmour@gmail.com>
76 lines
2 KiB
TypeScript
76 lines
2 KiB
TypeScript
import * as 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',
|
|
},
|
|
},
|
|
];
|