mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00: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:
@@ -55,6 +55,14 @@ export abstract class BaseCommand extends Command {
|
|||||||
this.exitWithCrash('There was an error initializing DB', error),
|
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 ?? '';
|
this.instanceId = this.userSettings.instanceId ?? '';
|
||||||
await Container.get(PostHogClient).init(this.instanceId);
|
await Container.get(PostHogClient).init(this.instanceId);
|
||||||
await Container.get(InternalHooks).init(this.instanceId);
|
await Container.get(InternalHooks).init(this.instanceId);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export const schema = {
|
|||||||
},
|
},
|
||||||
mysqldb: {
|
mysqldb: {
|
||||||
database: {
|
database: {
|
||||||
doc: 'MySQL Database',
|
doc: '[DEPRECATED] MySQL Database',
|
||||||
format: String,
|
format: String,
|
||||||
default: 'n8n',
|
default: 'n8n',
|
||||||
env: 'DB_MYSQLDB_DATABASE',
|
env: 'DB_MYSQLDB_DATABASE',
|
||||||
|
|||||||
Reference in New Issue
Block a user