mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor: Add deprecation notice for MySQL and MariaDB (#6189)
* refactor: Add deprecation notice for MySQL and MariaDB * Update packages/cli/src/commands/BaseCommand.ts Co-authored-by: Cornelius Suermann <cornelius@n8n.io> --------- Co-authored-by: Cornelius Suermann <cornelius@n8n.io>
This commit is contained in:
parent
ee582cc3bd
commit
0673a39fa0
|
@ -55,6 +55,14 @@ export abstract class BaseCommand extends Command {
|
|||
this.exitWithCrash('There was an error initializing DB', error),
|
||||
);
|
||||
|
||||
const dbType = config.getEnv('database.type');
|
||||
|
||||
if (['mysqldb', 'mariadb'].includes(dbType)) {
|
||||
LoggerProxy.warn(
|
||||
'Support for MySQL/MariaDB has been deprecated and will be removed with an upcoming version of n8n. Please migrate to PostgreSQL.',
|
||||
);
|
||||
}
|
||||
|
||||
this.instanceId = this.userSettings.instanceId ?? '';
|
||||
await Container.get(PostHogClient).init(this.instanceId);
|
||||
await Container.get(InternalHooks).init(this.instanceId);
|
||||
|
|
|
@ -129,7 +129,7 @@ export const schema = {
|
|||
},
|
||||
mysqldb: {
|
||||
database: {
|
||||
doc: 'MySQL Database',
|
||||
doc: '[DEPRECATED] MySQL Database',
|
||||
format: String,
|
||||
default: 'n8n',
|
||||
env: 'DB_MYSQLDB_DATABASE',
|
||||
|
|
Loading…
Reference in a new issue